当 Boost 库/ header 与 VC++ 9 编译器(Visual C++ 2008 Express Edition 或 Visual Studio 2008)一起使用时,会生成许多良性警告。它们有两种:
- 关于 Wp64 设置的警告。
- 有关编译器版本的警告。
如何关闭这些警告?
最佳答案
关于 Wp64 设置的警告。
Turn off the /Wp64 setting which is set by default. You can find it in Project Properties -> C/C++ -> General.
关于编译器版本的警告。
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/