Search
Support & Downloads
All of Support
This Category
This Product
Software Products
Intel® C++ Compiler for Windows*
Fatal link error LNK1104 when using Intel® C++ Compiler with Boost* libraries

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:

  1. Open "boost\config\auto_link.hpp."

  2. Search for "__ICL" to find the following entries:

    #elif defined(__ICL)

    // Intel C++, no version number:
    # define BOOST_LIB_TOOLSET "iw"

  3. 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.

  4. Rebuild your application to resolve the link errors.

This applies to:
Intel® C++ Compiler for Windows*

Solution ID: CS-029218
Date Created: 06-May-2008
Last Modified: 09-May-2008
Back to Top