获得LNK1104链接,以提高pre-编译库时 [英] Getting LnK1104 when linking to Boost pre-compiled libraries
问题描述
我已经使用附带的工具内置升压和我结束了预期的舞台/ lib文件夹! lib文件夹包含几个库具有以下安明方式:
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-gd-1_50.lib
libboost_ * lib_name * _vc100_mt-1_50.lib
libboost_*lib_name*_vc100_mt-1_50.lib
虽然建设项目,我的cl.exe得到一个链接错误1104 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
libboost_*lib_name*_vc100_mt-s-1_50.lib
任何想法?如果另一方面使用Visual Studio 10,并在我的VC ++ Direcotries设置舞台/ lib目录 - 图书馆Direcotries,就像一个魅力一切工作!
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
在lib中名字的意思是你的项目的选项使用多线程和静态链接Ç++编译标准的运行时库。看起来像你的Boost构建没有被配置为建立这样的库版本,所以它丢失了。
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.
这篇关于获得LNK1104链接,以提高pre-编译库时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!