2.3.4. Specifying search paths

The following options allow you to specify the directories that are searched for included files. The precise search path will vary depending on the combination of options selected, and whether the include file is enclosed in angle brackets or double quotes. Refer to Included files for full details of how these options work together.

-I, dir-name

Adds the specified directory to the list of places that are searched for included files. The directories are searched in the order they are given, by multiple -I options. The in-memory file system is specified by -I-.

-fk

Uses Kernighan and Ritchie search rules for locating included files. The current place is defined by the original source file and is not stacked. See The current place for more information. If you do not use this option, Berkeley-style searching is used.

-fd

Makes the handling of quoted include files the same as angle-bracketed include files. Specifically, the current place is excluded from the search path.

-j, dir-list

Adds the specified comma-separated list of directories to the end of the search path, after all directories specified by -I options. Use -j- to search the in-memory file system.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C