Developer Guide and Reference

Contents

I-

Splits the include path.

Syntax

Linux:
-I-
macOS:
-I-
Windows:
/I-
Arguments
None
Default
OFF
The default directory is searched for include files.
Description
This option splits the include path. It prevents the use of the current directory as the first search directory for '#include "file"'.
If you specify directories using the
I
option
before
you specify option
I-
, the directories are searched only for the case of '#include "file"'; they are not searched for '#include <file>'.
If you specify directories using the
I
option
after
you specify option
I-
, these directories are searched for all '#include' directives.
This option has no effect on option
nostdinc++
, which searches the standard system directories for header files.
This option is provided for compatibility with gcc.
Alternate Options
None