Boost warnings with VC++ 9

╄→гoц情女王★ 提交于 2019-12-24 08:13:13

问题


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:


  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 _MSC_VER is equal to 1800. (1800 is the VC9 version number used in Boost configuration.)



来源:https://stackoverflow.com/questions/14271/boost-warnings-with-vc-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!