You copied the Doc URL to your clipboard.

Compiler command-line options and search paths

Table 2-2 shows how the specified compiler command-line options affect the search path used by the compiler when it searches for header and source files.

Table 2. Include file search paths
Compiler option<include> search order"include" search order
Neither -Idir[,dir,...] nor -Jdir[,dir,...]ARMCCnINC, then ARMINC, then ../includeCurrent Working Directory (CWD) then ARMCCnINC, then ARMINC, then ../include
-Idir[,dir,...]ARMCCnINC, then ARMINC, then ../include, then the directory or directories specified by -Idir[,dir,...]CWD then the directory or directories specified by -Idir[,dir,...] then ARMCCnINC, then ARMINC, then ../include
-Jdir[,dir,...]The directory or directories specified by -Jdir[,dir,...]CWD then the directory or directories specified by -Jdir[,dir,...]
Both -Idir[,dir,...] and -Jdir[,dir,...]The directory or directories specified by -Jdir[,dir,...] and then the directory or directories specified by -Idir[,dir,...]CWD then the directory or directories specified by -Idir[,dir,...] and then the directory or directories specified by -Jdir[,dir,...]

--sys_include

No effectRemoves CWD from the search path

--kandr_include

No effectUses Kernighan and Ritchie search rules

See also

Reference
Other information
  • Kernighan, B.W. and Ritchie, D.M., The C Programming Language (2nd edition, 1988). Prentice-Hall, Englewood Cliffs, NJ, USA. ISBN 0-13-110362-8.