| |||
| Home > The ARM Compilers > Command syntax > 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-nameAdds 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-.
-fkUses 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.
-fdMakes 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-listAdds 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.