-qgcc_cpp_stdinc (C++ only)

Category

Compiler customization

Pragma equivalent

None

Purpose

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

Syntax

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

directory_path
The path for the directory where the compiler should search for the GNU C++ header files. 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 -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 -qgcc_cpp_stdinc=mypath/headers1:mypath:headers2

Related information