简体   繁体   中英

Getting LnK1104 when linking to Boost pre-compiled libraries

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 !

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM