|
When building an application that uses the Boost Libraries with the Intel® C++ Compiler, you may get linker errors like the ones shown below due to incorrect libraries being linked to the application:
fatal error LNK1104: cannot open file 'libboost_thread-iw-mt-1_33_1.lib' or fatal error LNK1104: cannot open file 'libboost_thread-iw-1_33_1.lib'
Perform the following steps to correct the problem:
- Open "boost\config\auto_link.hpp."
- Search for "__ICL" to find the following entries:
#elif defined(__ICL)
// Intel C++, no version number: # define BOOST_LIB_TOOLSET "iw"
- Change "iw" to:
"vc7" - if you are using Microsoft* Visual Studio* .NET "vc71" - if you are using Microsoft Visual Studio .NET 2003 "vc8" - if you are using Microsoft Visual Studio 2005 "vc9" - if you are using Microsoft Visual Studio 2008.
- Rebuild your application to resolve the link errors.
This applies to:
|