-qc_stdinc

C only

Description

Changes the standard search location for the C headers.

Syntax

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

Notes

The standard search path for C headers is determined by combining the search paths specified by both this (-qc_stdinc) and the -qgcc_c_stdinc compiler option, in that order. You can find the default search path for this option in the compiler default configuration file.

If one of these compiler options is not specified or specifies an empty string, the standard search location will be the path specified by the other option. If a search path is not specified by either of the -qc_stdinc or -qgcc_c_stdinc compiler options, the default header file search path is used.

If this option is specified more than once, only the last instance of the option is used by the compiler. To specify multiple directories for a search path, specify this option once, using a : (colon) to separate multiple search directories.

This option is ignored if the -qnostdinc option is in effect.

Example

To specify mypath/headers1 and mypath/headers2 as being part of the standard search path, enter:

xlc myprogram.c -qc_stdinc=mypath/headers1:mypath/headers2

Related information