BUG? gcc and header search path

Ronny Buchmann ronny-vlug at vlugnet.org
Sun Jan 25 16:39:26 UTC 2004


The problem: two versions of a library installed (one in /usr, other one 
in /usr/local), now I can't compile against the one in /usr, because gcc 
refuses to change the search order for /usr and /usr/local.
---
ignoring duplicate directory "/usr/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include
 /usr/include
End of search list.
---

Is this intentional or a bug? Should /usr/local/include be in the search list 
by default at all?

ronny
-- 
http://LinuxWiki.org/RonnyBuchmann





More information about the fedora-devel-list mailing list