B
bigbinc
I am trying to override all system includes. But I cant be sure that
they are overridden. I could use #include "stdio.h" as opposed to the
<stdio.h>
for example but I am working with a lot of code and have to redo my
includes.
So the question, If I have a
#include <stdio.h> in my code and
then I do
gcc -I.my_own_include/(has stdio.h)
which stdio.h will the code compile with
/usr/include/stdio.h or
my_own_include/stdio.h?
-I dir
Add the directory dir to the list of directories to be searched for
header files. Directories named by -I are searched before the standard
system include directories. If the directory dir is a standard system
include directory, the option is ignored to ensure that the default
search order for system directories and the special treatment of
system headers are not defeated .
they are overridden. I could use #include "stdio.h" as opposed to the
<stdio.h>
for example but I am working with a lot of code and have to redo my
includes.
So the question, If I have a
#include <stdio.h> in my code and
then I do
gcc -I.my_own_include/(has stdio.h)
which stdio.h will the code compile with
/usr/include/stdio.h or
my_own_include/stdio.h?
-I dir
Add the directory dir to the list of directories to be searched for
header files. Directories named by -I are searched before the standard
system include directories. If the directory dir is a standard system
include directory, the option is ignored to ensure that the default
search order for system directories and the special treatment of
system headers are not defeated .