加强与VC ++ 9警告 [英] Boost warnings with VC++ 9
问题描述
在Boost库头与VC ++编译器9(的Visual C ++ 2008例preSS版或Visual Studio 2008)/时,会产生大量的良性警告。它们是2种
- 警告有关Wp64设置。
- 有关的警告编译器版本。
我如何关闭这些警告?
-
警告有关Wp64设置。
关闭 / Wp64 这是默认设置设置。你可以找到它的项目属性 - > C / C ++ - >常规的
块引用> -
警告有关编译器的版本。
进入升压干线(在线),并获得最新的提振\\提升\\ CONFIG \\编译\\ visualc.hpp 头文件。当前文件DIFF并合并路段 MSC 的VER 等于 1800 。 ( 1800 的是升压配置中使用的VC9版本号。)
块引用>
When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express Edition or Visual Studio 2008), a lot of benign warnings are generated. They are of 2 kinds:
- Warning about the Wp64 setting.
- Warning about the compiler version.
How can I turn off these warnings?
Warning about the Wp64 setting.
Turn off the /Wp64 setting which is set by default. You can find it in Project Properties -> C/C++ -> General.
Warning about the compiler version.
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 MSCVER is equal to 1800. (1800 is the VC9 version number used in Boost configuration.)
这篇关于加强与VC ++ 9警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!