Skip to navigation
Where does my gcc compiler look for its header file by default
23.10.19
cuse cpp which is part of gcc type: cpp -v #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/x86_64-linux-gnu/8/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/8/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list A way to manipulate this directory search is by providing the compiler flag -I or -I followed by an absolute or relative (to the current directory) path, with no spaces, and inserts the named directory at the beginning of the "angle-bracket" search path. example: gcc -Iheaders source.c
https://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art026
Reply
Anonymous
Information Epoch 1732624895
Worse is better.
Home
Notebook
Contact us