This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to change order of search directories
- From: Pat Josh <tennisanyday at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 11 Mar 2009 17:06:18 -0700
- Subject: How to change order of search directories
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