Getting LnK1104 When Linking to Boost pre-compiled libraries

I have a built-in boost using the included tools, and I ended up, as expected, using the stage / lib folder! The lib folder contains several libraries with the following template:

libboost_ * lib_name * _vc100_mt-G.D.-1_50.lib

libboost_ * lib_name * _vc100_mt-1_50.lib

Although creating a project using cl.exe, I get a linker error 1104 for lib with the following pattern

libboost_ * lib_name * _vc100_mt-s-1_50.lib

Any ideas? If, on the other hand, use visual studio 10 and install a scene / library in my VC ++ Direcotries - Library Direcotries, everything works like a charm!

+3
c ++ boost
source share
1 answer

mt-s in the name lib means that your project is compiled with options for using the multithreaded and statically linked standard C ++ runtime library. It looks like your Boost build is not configured to create such a version of lib, so it is missing.

+4
source share

All Articles