致命错误LNK1104:无法打开文件'libboost_system-vc110-MT-GD-1_51.lib“ [英] fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_51.lib'
问题描述
我似乎无法得到这个工作。我做了一个简单的控制台应用程序(依赖于的WebSocket ++
库),这需要加速
库..但是当我尝试编译我得到:
Seem I can't get this to work. I made a simple console application (which depend on websocket++
library) which need Boost
libraries.. but when I try to compile I get:
致命错误LNK1104:无法打开文件'libboost_system-vc110-MT-GD-1_51.lib
fatal error LNK1104: cannot open file 'libboost_system-vc110-mt-gd-1_51.lib'
不过,我没有这创造了的lib(BOOST_ROOT)/舞台/林达
的bjam的,我联系到编译器 C ++ / Additionnals包括
。
However, I did the bjam which created the lib in (boost_root)/stage/libs
and I linked the path to the libs to the compiler C++/Additionnals includes
.
如果我在看(BOOST_ROOT)/舞台/林达
文件 libboost_system-vc110-MT-GD-1_51.lib
是不存在的。这就是所谓的 libboost_system-vc110-MT-SGD-1_51.lib
代替。
If I look in (boost_root)/stage/libs
the file libboost_system-vc110-mt-gd-1_51.lib
is not there. It is called libboost_system-vc110-mt-sgd-1_51.lib
instead.
任何想法?
推荐答案
的 C ++→常规→附加包含目录的参数是列出目录,其中编译器将头文件搜索。
The C++ → General → Additional Include Directories parameter is for listing directories where the compiler will search for header files.
您需要告诉链接到哪里寻找库链接。要访问此设置,项目名称中右键单击的解决方案管理器的窗口,然后的属性→链接→常规→附加库目录的。输入< boost_path> \\阶段\\ lib中
这里(这是哪里,如果你的打造升压使用默认选项)。
You need to tell the linker where to look for libraries to link to. To access this setting, right-click on the project name in the Solution Explorer window, then Properties → Linker → General → Additional Library Directories. Enter <boost_path>\stage\lib
here (this is the path where the libraries are located if you build Boost using default options).
这篇关于致命错误LNK1104:无法打开文件'libboost_system-vc110-MT-GD-1_51.lib“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!