libstdc++ headers and system headers

Gabriel Dos Reis
Fri Feb 16 10:42:00 GMT 2001

Alexandre Oliva <> writes:

| On Feb 15, 2001, Benjamin Kosnik <> 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.


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

-- Gaby
CodeSourcery, LLC             

More information about the Libstdc++ mailing list