-I
Syntax
-IpathParameters
| The search path for |
Description
Use this option to specify paths to be used by the preprocessor. This option can be used more than once on the command line.
By default, the assembler searches for #include files in the current working directory, in the system header directories, and in the paths specified in the IASMarm_INC environment variable. The -I option allows you to give the assembler the names of directories which it will also search if it fails to find the file in the current working directory.
Example
For example, using the options:
-Ic:\global\ -Ic:\thisproj\headers\
and then writing:
#include "asmlib.hdr"
in the source code, make the assembler search first in the current directory, then in the directory c:\global\, and then in the directory C:\thisproj\headers\. Finally, the assembler searches the directories specified in the IASMarm_INC environment variable, provided that this variable is set, and in the system header directories.
Caution
Project>Options>Assembler>Preprocessor>Additional include directories