use find to locate a header file
Please refer to the man page for find for an explanation of this.
man find
I used the find command to search for one of the header files. This shows me where the library header files are located.
find / -name stdio.h
This eventually resulted in a list of files and a lot of error messages about access denied to various subdirectories. The most likely candidate for the real stdio.h header file for gcc was
/usr/include/stdio.h
which means that the standard header files are in
/usr/include/
I think that setting the library path and header file path may have been an option selected during installation of gcc.
I am not completely certain this is the right directory because I have a lot of other C compilers also installed on my computer.
|