I writed project which uses <boost/thread/locks.hpp>
, i added include
directory to Additional Include directories
, and lib
folder to linker. But when i try to build solution, error:
Error 1 error LNK1104: cannot open file 'libboost_thread-vc100-mt-sgd-1_50.lib'
I searched this file in lib directory, but no file with this name in lib directory. I found file with similar name libboost_thread-vc100-mt-gd-1_50
.
What i'm doing wrong?
Your problem seems to be pretty similar to the one in this question. According to the naming conventions described here the only difference between the library the linker wants to use and the library you have is that the former links statically to the c++ standard library and the compiler runtime support libraries. I can think of two ways to solve this problem:
Get the library the linker wants
a. If you used the boostpro installer:
b. If you built the library yourself:
Make the linker use the library you want
a. Make autolink use the shared libraries
b. Disable autolink