c++ - 使用 VC++ 9 boost 警告

标签 c++ visual-studio boost warnings

当 Boost 库/ header 与 VC++ 9 编译器(Visual C++ 2008 Express Edition 或 Visual Studio 2008)一起使用时,会生成许多良性警告。它们有两种:

  1. 关于 Wp64 设置的警告。
  2. 有关编译器版本的警告。

如何关闭这些警告?

最佳答案

  1. 关于 Wp64 设置的警告。

    Turn off the /Wp64 setting which is set by default. You can find it in Project Properties -> C/C++ -> General.

  2. 关于编译器版本的警告。

    Go to the Boost trunk (online) and get the latest boost\boost\config\compiler\visualc.hpp header file. Diff it with the current file and merge the sections where _MSC_VER is equal to 1800. (1800 is the VC9 version number used in Boost configuration.)

关于c++ - 使用 VC++ 9 boost 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14271/

相关文章:

c++ - 编译器无法识别重载构造函数 C++

c++ - SDL 和 GLFW 每次轮询仅报告一个键(重复),即使同时按下多个键也是如此

.net - 发布生成 .pdb 文件,为什么?

c++ - Boost 程序选项 : multiple options for the same value

c++ - boost 文件系统版本 3 问题?

c++ - 关于C++模板的问题

c++ - 使用opencv从图像中删除水平 strip

visual-studio - 在 Visual Studio 2012/2013/2015 中克隆 TFS 构建定义?

visual-studio-2010 - Visual Studio 2010 默认缩放级别

c++ - Boost.Test 中的异常双重释放