Boost logo

Boost-Build :

Subject: [Boost-build] [] Reducing warnings on system headers, -isystem vs -I
From: Brian Dahlquist (bwdahlquist_at_[hidden])
Date: 2009-09-24 10:11:27

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) ;

### Jamroot.jam ###
project main : requirements <warnings>on ;
exe main : [ glob *.cc ] /site-config//dx_d3d9 ;

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at