This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25645] gcc search for header files in /usr/local/include before command-line specified directories
- From: "palladia at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2006 19:25:30 -0000
- Subject: [Bug c/25645] gcc search for header files in /usr/local/include before command-line specified directories
- References: <bug-25645-11952@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from palladia at yahoo dot com 2006-01-03 19:25 -------
$which gcc
/home/gfleming/local/bin/gcc
$gcc -v
Target: sparc-sun-solaris2.8
Configured with: ../gcc-4.0.2/configure --prefix=/home/gfleming/local
--enable-language=c,c++,java
Thread model: posix
gcc version 4.0.2
$pwd
/home/gfleming/xemacs-21.5.24/src
$gcc -E -I/home/gfleming/local/include -I. glyphs-eimage.c | grep png.h
# 1 "/usr/local/include/png.h" 1 3
# 211 "/usr/local/include/png.h" 3
# 212 "/usr/local/include/png.h" 2 3
# 215 "/usr/local/include/png.h" 2 3
...
$gcc -E -I. glyphs-eimage.c | grep png.h
# 1 "/usr/local/include/png.h" 1 3
# 211 "/usr/local/include/png.h" 3
# 212 "/usr/local/include/png.h" 2 3
# 215 "/usr/local/include/png.h" 2 3
...
$gcc -E -B/home/gfleming/local -I. glyphs-eimage.c | grep png.h
# 1 "/home/gfleming/local/include/png.h" 1 3 4
# 359 "/home/gfleming/local/include/png.h" 3 4
# 360 "/home/gfleming/local/include/png.h" 2 3 4
# 364 "/home/gfleming/local/include/png.h" 2 3 4
...
$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25645