3.6.12.2 I: Specify Include File Search Path Option
The -Idir
option adds the directory
dir
to the head of the list of directories to be searched for
header files. A space may be present between the option and directory name.
The option can specify either an absolute or relative path and it can be used more than once if multiple additional directories are to be searched, in which case they are scanned from left to right. The standard system directories are searched after scanning the directories specified with this option.
Under the Windows OS, the use of the directory backslash character may
unintentionally form an escape sequence. To specify an include file path that ends with a
directory separator character and which is quoted, use -I "E:\\"
, for
example, instead of -I "E:\"
, to avoid the escape sequence
\“
. Note that MPLAB X IDE will quote any include file path you specify
in the project properties and that search paths are relative to the output directory, not
the project directory.