How to change order of search directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux