Gcc 4.0.2 configured with following options:

../gcc-4.0.2/configure --prefix=/home/gfleming/local
--enable-language=c,c++,java

When compiling with following line:

gcc -E -I/home/gfleming/local/include -I. glyphs-eimage.c | less

output shows that gcc always pulls in /usr/local/include/png.h and
/usr/local/include/zlib.h, even though /home/gfleming/local/include/png.h and
/home/gfleming/local/include/zlib.h exist as well.

If compiled with:

gcc -E -B/home/gfleming/local -I. glyphs-eimage.c | less

then gcc pulls in the header files correctly from /home/gfleming/local/include.


-- 
           Summary: gcc search for header files in /usr/local/include before
                    command-line specified directories
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: palladia at yahoo dot com
  GCC host triplet: SunOS 5.8 sun4u sparc
GCC target triplet: SunOS 5.8 sun4u sparc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25645


Reply via email to