Syntax
-I directory
The -I option adds directory to the end of the list of directories to search for source files included (using quotation marks) by the INCLUDE and INCLUDEBIN directives.
Setting this in CrossStudio
To set the directories searched for include files for a project:
- Select the project in the Project Explorer.
- In the Preprocessor Options group edit the User Include Directories property.
To set the directories searched for include files for a particular file:
- Select the file in the Project Explorer.
- In the Preprocessor Options group edit the User Include Directories property.
Example
For example, to tell the assembler to search the directories ../include and ../lib/include for included files when compiling file.asm and writing the output to file.hzo you could use the following:
has -I../include -I../lib/include file.c -o file.hzo file.asm