加强与VC ++ 9警告 [英] Boost warnings with VC++ 9

查看:97
本文介绍了加强与VC ++ 9警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Boost库头与VC ++编译器9(的Visual C ++ 2008例preSS版或Visual Studio 2008)/时,会产生大量的良性警告。它们是2种


  1. 警告有关Wp64设置。

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

我如何关闭这些警告?


解决方案

  1. 警告有关Wp64设置。


      

    关闭 / Wp64 这是默认设置设置。你可以找到它的项目属性 - > C / C ++ - >常规



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


      

    进入升压干线(在线),并获得最新的提振\\提升\\ 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:

  1. Warning about the Wp64 setting.
  2. Warning about the compiler version.

How can I turn off these warnings?

解决方案

  1. 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.

  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆