This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++ headers and system headers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]