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: fixinc and compatibility


On 17 Jun 2001 12:31:26 -0700 Russ Allbery <rra@stanford.edu> wrote:

> fixincludes has been part of gcc for many years, so I don't understand
> what's changed that would be causing this problem.  Maybe I'm missing
> something?

My fault, apparently I got something wrong.

I found some interesting code in "g++/bits/std_cstring.h":

#pragma GCC system_header
#include_next <string.h>

When adding '-I/usr/include', gcc cannot find "string.h".
Any ideas?

> It's *never* been correct to add -I/usr/include.  I'm amazed that there
> are still packages making this mistake; like I said, I've hardly ever run
> into a package with this problem.

Many packages do just add "-I${prefix}/include".

--Daniel


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