3.14. Options for Directory Search
3.14 Options for Directory Search
These options specify directories to search for header files, for libraries and for parts of the compiler:
-
-I
dir -
Add the directory dir to the head of the list of directories to be searched for header files. This can be used to override a system header file, substituting your own version, since these directories are searched before the system header file directories. However, you should not use this option to add directories that contain vendor-supplied system header files (use
-isystem
for that). If you use more than one-I
option, the directories are scanned in left-to-right order; the standard system directories come after.If a standard system include directory, or a directory specified with
-isystem
, is also specified with-I
, the-I
option is ignored. The directory is s