c++ - VS12 Buiding Boost 库 fatal error LNK1104 : cannot open file 'libboost_system-vc110-mt-gd-1_58.lib'

标签 c++ visual-studio-2012 boost boost-asio

我一直在尝试为 Visual Studio 2012 构建 boost:asio。 我已经做了 bjam,它给了我包含和 lib 地址,我将它们粘贴到 VS 设置中。 现在编译器找不到“libboost_system-vc110-mt-gd-1_58.lib”,但在 stage lib 中我得到了“libboost_system-vc120-mt-gd-1_58.lib”,这可能是一个更新的版本。

我该如何解决这个问题? 找了好几天都没搞定。

最佳答案

看起来您正在使用 VisualStudio 2012(正在请求 vc110 版本库),但实际上您已经为 Visual Studio 2013 (vc120) 构建了 boost 。

您需要指定正确的工具集来 boost 构建 (--toolset=msvc-11.0),而不是让他选择默认值。

关于c++ - VS12 Buiding Boost 库 fatal error LNK1104 : cannot open file 'libboost_system-vc110-mt-gd-1_58.lib' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31138514/

相关文章:

c++ - 使用指针调用函数时出错

c++ - 从纯文本中读取真值表,将其转换为 C++ 中的 map<int,list<int>>

c# - 调试时停止 Visual Studio 启动当前选择/打开的 HTML 页面

c# - MathUtilities C# 异常处理

c# - 从页面导航的 WPF C# 框架导航

c++ - 错误 C2668 : 'boost::bind' : ambiguous call to overloaded function

c++ - 如何使用 CImg.h 库在另一张图片上显示一张图片?

c++ - 在数据读入函数中将指针存储在 vector 中

c++ - 如何为 unsigned char 类型编译 boost::spirit ?

C++设置容器不能删除奇数