##### Syntax

-Idirectory

In order to find include files the compiler driver arranges for the compilers to search a number of standard directories. You can add directories to the search path using the -I switch which is passed on to each of the language processors. The current directory is automatically added to the user include path before any directory added by the -I command line option.

##### To set this option in the CrossStudio development environment

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

To tell the compiler to search the current directory (automatically provided by the compiler driver), ../include and ../lib/include for included files when compiling file.c use the following:

    hcl -I../include -I../lib/include file.c

You can speciify more than one include directory by separating each directory component with either a comma or semicolon, so the following command lines have the same effect as the one above.

    hcl -I../include,../lib/include file.c

    hcl -I../include;../lib/include file.c

##### See Also

Exclude Standard Include Directories (-I-)