-qc_stdinc

Category

Compiler customization

Pragma equivalent

None.

Purpose

Changes the standard search location for the XL C and system header files.

Syntax

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

Defaults

By default, the compiler searches the directories specified in the configuration file for the XL C header files (this is normally /opt/IBM/xlc/13.1.0/include/) and for the system header files (this is normally /usr/include/).

Parameters

directory_path
The path for the directory where the compiler should search for the XL C and system 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 and system 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 path for the XL C headers with mypath/headers1 and mypath/headers2, enter:
xlc myprogram.c -qc_stdinc=mypath/headers1:mypath/headers2

Related information