Boost warnings with VC++ 9
-
08-06-2019 - |
Question
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?
Solution
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 _MSC_VER is equal to 1800. (1800 is the VC9 version number used in Boost configuration.)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow