-isystem (-qgcc_cpp_stdinc) (C++ only)

Pragma equivalent

None

Purpose

Changes the standard search location for the GNU C++ system header files.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -isystem--dir----------------------------------------------><

Read syntax diagramSkip visual syntax diagram
                                  .- :-------------.          
                                  V                |          
>>- -q--gcc_cpp_stdinc--=--+---+----directory_path-+--+---+----><
                           '-"-'                      '-"-'   

Defaults

By default, the compiler searches the directory specified in the configuration file.

Parameters

dir
The directory for the compiler to search for GNU 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 GNU 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 GNU C++ headers, you use a configuration file to do so; see Directory search sequence for include 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 paths for the GNU C++ headers with mypath/headers1 and mypath/headers2, enter:
xlc myprogram.C -isystem mypath/headers1 -isystem mypath/headers2


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us