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: A problem with include_next and removing duplicated include paths


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.


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