How to change order of search directories

Pat Josh tennisanyday@gmail.com
Thu Mar 12 00:06:00 GMT 2009


Hi,
I have a small issue when using gcc. I have a 3rd party software thats
installed and it installs a c header file in /usr/local/include. I
have another header file with same name in the standard directory
/usr/include. Now with #include <thatheader.h>, it picks up the one in
/usr/local/include because /usr/local/include come first in the list
of directories to be searched. But I want it to pick from
/usr/include. Any idea what can I do here?

Also when linking with -l option, it picks up the libName.a file that
the 3rd party software generated which I dont want. Any suggestions
will be much appreciated.

Thanks
P



More information about the Gcc-help mailing list