Getting LnK1104 when linking to Boost pre-compiled

2019-07-03 16:32发布

问题:

I have built boost using the included tools and i ended up as expected with the stage/lib folder ! The lib folder contains several libraries with the following anming pattern:

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

libboost_*lib_name*_vc100_mt-1_50.lib

Though building a project with 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 set the stage/lib at my VC++ Direcotries - Library Direcotries, all work like a charm !

回答1:

mt-s in lib name means your project is compiled with options to use multithreaded and statically linked C++ standard runtime library. Looks like your Boost build isn't configured to build such lib version, so it is missing.



标签: c++ boost