This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A problem with include_next and removing duplicated include paths
- To: Andrey Slepuhin <pooh at msu dot ru>
- Subject: Re: A problem with include_next and removing duplicated include paths
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Tue, 24 Jul 2001 23:46:23 +0100
- Cc: gcc at gcc dot gnu dot org, mark at codesourcery dot com
Andrey Slepuhin wrote:-
> Hi folks,
>
> Sorry if this problem was already discussed, but I consider current behavior
> of gcc preprocessor very strange. Consider the following situation:
> I'm writing a C++ program which also uses some library libfoo. To get
> include flags needed to use libfoo headers correctly, I'm using a
> script 'libfoo-config --cflags' (this is, for example, a common thing
> for most GNOME libraries). So, if libfoo is installed under /usr prefix,
> I will probably get -I/usr/include in gcc command line.
We are currently telling people not to have -I/usr/include.
Neil.