views:

451

answers:

3

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  A: 
  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.)

Ashwin
+1  A: 

Ash, just a question: have you actually gotten Boost to compile under VS2008 Express?

James D
A: 

@CodingTheWheel: No, I haven't tried that. I'm using the pre-compiled library binaries available from here.

Ashwin