Subject: Re: [Boost-build] [boost.build] Reducing warnings on system headers, -isystem vs -I
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-09-24 10:49:03
Brian Dahlquist wrote:
> I'm usingÂ .h files from a Microsoft library, compiling with gcc/mingw. I've set up my *.jam
> files, and things compile ok.
> The problem is an incredible amount of warnings from the included .h system headers. I don't have
> control over these files, but its hard to see errors from my own code when the library has ~250
> lines of warnings.Â I dumped the compile instructions to a log and saw them included with "-I".
> (in the old makefile I'm trying to replace, " -isystem " was used).
> Anyway to specify no warnings for these headers (or compile w/ -isystem) ? I tried playing with
> the project : <warnings>off stuff, but it seemed a little too powerful - no errors at all!
> My current setup is something like this:
> #### site-config.jam ###
> project site-config : requirements <warnings>off
> lib dx_d3d9 : : <name>d3d9 <search>$(path_to_lib) : : <include>$(path_to_include) ;
can you try this:
lib dx_d3d9 : : <name>d3d9 <search>$(path_to_lib) : : <cflags>"-isystem $(path_to_include)" ;
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