My development environment is such that I have some_header.h
in /usr/include
and in /another/directory
. /another/directory
contains some header files I need to include in my program, but I want to use some_header.h
from /usr/include
. When I use
gcc ... -I/another/directory
gcc uses /another/directory/some_header.h
. If I use
gcc ... -I/usr/include -I/another/directory
gcc does the same thing because it ignores /usr/include
since it is part of the standard search path, but it gets searched after non standard directories included with -I.
Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…