g++ 3.0.2 fails with explicit -I/usr/include

Loren James Rittle rittle@latour.rsch.comm.mot.com
Thu Nov 29 22:26:00 GMT 2001


In article < 3C071CDF.9996C7C1@itgssi.com > you write:

> (g++ -c g.cc works, naturally)
>
> this is g.cc
> ==============================
> #include <fstream>
> ==============================

Of course, g++ 3.0.2 fails with explicit -I/usr/include.  It is
documented as not supported unless *you* do a bit more work yourself.
>From gcc.texi: ``Use of @option{-I/usr/include} may cause trouble.''

[... what to do about it, removed; consult your local info pages which
     were installed with your compiler ...]

BTW, gcc 3.1 may improved the situation (or I may just be "lucky"):

; /usr/local/beta-gcc/bin/g++ -c -I/usr/include t.C
cc1plus: warning: changing search order for system directory "/usr/include"
cc1plus: warning:   as it has already been specified as a non-system directory



More information about the Gcc-bugs mailing list