Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-11-17 06:10:18


>When we upgraded from VC 2003 to VC 2005 the following line in one of our
>project requirements clauses stopped working:
>
><toolset>msvc:<variant>debug:<cxxflags>"/W3 /WX /Wp64 /Zc:wchar_t
>/Zc:forScope"

If you are using a recent version of BBv2, you can add:

<warnings>on <warnings-as-errors>on
<toolset>msvc:<variant>debug:,<cxxflags>/Wp64

as BBv2 automatically adds /Zc:wchar_t and /Zc:forScope for you.
<warnings-as-errors>on adds /WX and <warnings>on adds /W3.

NOTE: <warnings>all (default) will add /W4 *and* /Wp64.

This will work for all versions of msvc and the warnings features will also
work (currently) with gcc and Metrowerks CodeWarrior.

HTH,
- Reece

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk