| Syntax: | Default: |
| /Ipath[;path] | Directory of source file, paths in INCLUDE environment variable |
Use /I to specify include search path(s). The compiler will search path[;path].
If you specify search paths using /I in both the ICC environment variable and on the command line, all the paths are searched. The paths specified in ICC are searched first.
For user include files, the paths searched, in order, are:
The /I option must be followed by one or more directory names. A space may be included between /I and the directory name. If you specify more than one directory, separate directory names with a semicolon.
If you use the /I option more than once, the directories you specify are appended to the directories you previously specified. For example:
/Id:\hdr;e:\ /I f:\
is equivalent to
/Id:\hdr;e:\;f:\;
If you use the /Xc option, the paths previously specified by using /I cannot be recovered. You have to use the /I option again to reuse the paths canceled by /Xc.
The /I option is not affected by /Xi.
![]()
Summary of Compiler Options
Environment Variables for Compiling