This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ headers and system headers
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: libstdc++ headers and system headers
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 16 Feb 2001 19:42:40 +0100
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, Neil Booth <neil at daikokuya dot demon dot co dot uk>, gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.91.1010215170511.8995D-100000@taarna.cygnus.com> <orvgqaij72.fsf@guarana.lsd.ic.unicamp.br>
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