This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c/25645] gcc search for header files in /usr/local/include before command-line specified directories



------- 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



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