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

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

 



> 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

[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