Keil™, An ARM® Company

RealView Compiler User's Guide

The search path

2.3.3. The search path

Table 2.2 shows how the command‑line options affect the search path used by the compiler when it searches for included header and source files.

Table 2.2. Include file search paths

Compiler option<include> search order"include" search order

Neither ‑I nor ‑J

RVCT31INCdirsCP, RVCT31INCdirs

‑I

RVCT31INCdirs, IdirsCP, Idirs, RVCT31INCdirs

‑J

JdirsCP, and Jdirs

Both ‑I and ‑J

Jdirs, IdirsCP, Idirs, Jdirs

‑‑sys_include

No effectRemoves CP from the search path

‑‑kandr_include

No effectUses Kernighan and Ritchie search rules

In Table 2.2:

RVCT31INCdirs

List of directories specified by the RVCT31INC environment variable, if set.

CP

The current place.

Idirs and Jdirs

Directories specified by the ‑Idirs and ‑Jdirs compiler options.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0375A