libstdc++ headers and system headers

Gabriel Dos Reis gdr@codesourcery.com
Fri Feb 16 10:42:00 GMT 2001


Alexandre Oliva <aoliva@redhat.com> writes:

| On Feb 15, 2001, Benjamin Kosnik <bkoz@redhat.com> wrote:
| 
| >> g++ -E test.c -o test.ii -I /usr/local/include/g++-v3/
| > You shouldn't need to explicitly include this directory. I'm assuming 
| > you're doing this just to expose a bug?
| 
| In fact, IMO, it's *wrong* to add system header directories with -I.
| You should use -isystem for those.

Agreed.

But it should be noted, as it appears, that most V3 headers currently
failed to say #pragma GCC system_header

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com



More information about the Libstdc++ mailing list