what is stdinc and how can I get where it is ?

John Graham johngavingraham@googlemail.com
Sun Nov 22 19:15:00 GMT 2009


> If my assumption is correct, is there any command or options I can use
> to check where is the path that my gcc search for, since I always get
> error messages as "cannot find stddef.h" ?

If you use the -v option, gcc will print all the directories it's
going to look for include files, including the ones you specify. On my
system, it looks like:



#include "..." search starts here:
#include <...> search starts here:
 /home
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.4.1/include
 /usr/lib/gcc/i486-linux-gnu/4.4.1/include-fixed
 /usr/include
End of search list.



John G



More information about the Gcc-help mailing list