Our dev environment makes heavy use of directories with locally modified headers that should be seen by the compiler instead of the "committed" "repository" versions.
If header A includes header B, gcc looks for B in the same directory A was in and does not obey the seach path.
So we used the -I- option on gcc to prevent that. Gcc will strictly follow the hierarchy of the include-path then.
As with gcc4 the -I- option is deprecated and repaced by -iqoute.
I can't figure out how to get the same behaviour with the -iquote option because I think it is lacking the side-effect of disabling the search in the "current" directory.
see http://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation
Any ideas how to achieve the same behaviour?