Syntax

-Idirectory

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.

To set this option in the CrossStudio development environment

To set the directories searched for include files for a project:

To set the directories searched for include files for a particular file:

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