c++ - 缺少 boost 库

标签 c++ boost

我的 VSC2013 编译器要我链接到 libboost_system-vc120-mt-s-1_55.libboost\stage\lib 中不存在该文件。我只有以 vc120-mt-1_55.libvc120-mt-gd-1_55.lib

结尾的 lib 文件

我用

构建了 boost
bootstrap
b2

我需要做什么来获取上面的库?

编辑:这有效

b2 variant=debug,release link=static runtime-link=static

最佳答案

您应该构建 static 版本的 boost 库。看这个问题How to build boost static libs?

注意: 库命名约定:

  • mt:多线程
  • s:静态
  • gd:带有调试版本的 ABI,

看这个问题就知道what's the difference between mt-gd and mt-s library

关于c++ - 缺少 boost 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20077059/

相关文章:

c++ - 使用 boost 1.4.2 时命名空间前缺少 ';'

c++ - 我什么时候想在 visual studio 中关闭 "precompiled header"?

c++ - win32 应用程序不是面向对象的,为什么有这么多指针?

c++ - Windows 10 中的注册表权限

c++ - 样式表/Qt Designer 是否支持高 dpi 屏幕?

c++ - boost::serialize 和 std::chrono::system_clock::time_point

python - C++ 服务器无法通过套接字从 python 客户端读取我的消息

c++ - 在 C++ 中 boost 数组初始化

c++ - 在 Swift 代码中调用 C++ 函数时读取文件失败

c++ - 上传我的代码的最简单方法?