-isystem (-qc_stdinc) (C only)
Category
Pragma equivalent
None.
Purpose
Changes the standard search location for the XL C header files.
Syntax
>>- -isystem--dir----------------------------------------------><
.- :-------------. V | >>- -q--c_stdinc--=--+---+----directory_path-+--+---+---------->< '-"-' '-"-'
Defaults
By default, the compiler searches the directory specified in the configuration file for the XL C header files (this is normally /opt/ibm/xlC/16.1.0/include/).
Parameters
- dir
- The directory for the compiler to search for XL C header files. The search directories are after all directories specified by the -I option but before the standard system directories. The dir can be a relative or absolute path.
- directory_path
- The path for the directory where the compiler should search for the XL C header files. The directory_path can be a relative or absolute path. You can surround the path with quotation marks to ensure it is not split up by the command line.
Usage
This option allows you to change the search paths for specific compilations. To permanently change the default search paths for the XL C headers, you use a configuration file to do so; see Directory search sequence for included files for more information.
If this option is specified more than once, only the last instance of the option is used by the compiler.
This option is ignored if the -nostdinc or -nostdinc++ (-qnostdinc) option is in effect.
Predefined macros
None.
Examples
To override the default search
path for the XL C headers with mypath/headers1 and mypath/headers2,
enter:
xlc myprogram.c -isystem mypath/headers1 -isystem mypath/headers2