[英]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 ! 我使用附带的工具构建了boost,我最终按照预期的那样使用stage / lib文件夹! The lib folder contains several libraries with the following anming pattern:
lib文件夹包含几个具有以下anming模式的库:
libboost_*lib_name*_vc100_mt-gd-1_50.lib libboost_ * lib_name * _vc100_mt-GD-1_50.lib
libboost_*lib_name*_vc100_mt-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 虽然用cl.exe构建一个项目,但我得到一个带有以下模式的lib的链接器错误1104
libboost_*lib_name*_vc100_mt-s-1_50.lib 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 !
另一方面,如果使用visual studio 10并在我的VC ++ Direcotries - Library Direcotries中设置stage / lib,那么所有工作就像一个魅力!
mt-s
in lib name means your project is compiled with options to use multithreaded and statically linked C++ standard runtime library. lib名称中的
mt-s
意味着您的项目使用选项进行编译,以使用多线程和静态链接的C ++标准运行时库。 Looks like your Boost build isn't configured to build such lib version, so it is missing. 看起来你的Boost构建没有配置为构建这样的lib版本,所以它缺失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.