fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_51.lib'

boost, c++, visual-studio

Solution

The C++ → General → Additional Include Directories parameter is for listing directories where the compiler will search for header files.

You need to tell the linker where to look for libraries to link to. To access this setting, right-click on the project name in the Solution Explorer window, then Properties → Linker → General → Additional Library Directories. Enter `<boost_path>\stage\lib` here (this is the path where the libraries are located if you build Boost using default options).

Problem

Seem I can't get this to work. I made a simple console application (which depend on `websocket++` library) which need `Boost` libraries.. but when I try to compile I get: fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_51.lib' However, I did the bjam which created the lib in `(boost_root)/stage/libs` and I linked the path to the libs to the compiler `C++/Additionnals includes`. If I look in `(boost_root)/stage/libs` the file `libboost_system-vc110-mt-gd-1_51.lib` is not there. It is called `libboost_system-vc110-mt-sgd-1_51.lib` instead. Any idea?

Original source

Related problems