-I


This option specifies the folder to search include files.

[Specification format]

-Ipath[,path]...

 

-

Interpretation when omitted

The include file is searched from the standard include file folder.

[Detailed description]

-

This option specifies the folder to search include files which are read by preprocessor directive "#include"or assembler control instruction "$INCLUDE/$BINCLUDE" as path.
Include files are searched according to the following sequence.

(1)

#include

(a)

Folder with source files (When files are specified by using " ")

(b)

Path specified by the -I option

(c)

Standard include file folder

(2)

$INCLUDE/$BINCLUDE

(a)

Path specified by the -I option

(b)

Folder with source file

(c)

Current folder

 

-

If path does not exist, a warning will be output.

-

An error will occur if path is omitted.

[Example of use]

-

To search include files from the current folder, folder D:\include, the standard folder in that order, describe as:

>ccrh -ID:\include -Xcommon=rh850 main.c