New cpp0 warning in 3.1 breaks configure (autoconf)

Andris Pavenis pavenis@latnet.lv
Wed Jun 12 23:55:00 GMT 2002


On Wednesday 12 June 2002 06:35, Alexandre Oliva wrote:
> >
> > Well, the problem stemmed from /usr/local/include in the first place.
> > Entirely different beast.
> >
> > See what I mean about different assumptions ?
>
> Same difference to me.  -I/usr/local/include is wrong too, since
> /usr/local/include is a system header directory.  -Iing it may not be
> as evil as /usr/include, but it's still a bad idea IMO.

There more. If for example /usr/X11R6/include is specified in C_INCLUDE_PATH
(or accordingly CPLUS_INCLUDE_PATH for C++) it is also treated as system 
header directory. So I'm getting warning when -I/usr/X11R6/include is 
specified in command line. Perhaps it would be better to  limit this warning 
to list of system include directories before adding ones from C_INCLUDE_PATH 
or CPLUS_INCLUDE_PATH (or even to ones which are processed by fixincludes)

Andris


	



More information about the Gcc mailing list