-qtempinc (C++ only)

Category

Template control

Pragma equivalent

None.

Purpose

Generates separate template include files for template functions and class declarations, and places these files in a directory which can be optionally specified.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-notempinc----------------------.   
>>- -q--+-tempinc--+-------------------+-+---------------------><
                   '-=--directory_path-'     

Defaults

-qnotempinc

Parameters

directory_path
The directory in which the generated template include files are to be placed.

Usage

The -qtempinc and -qtemplateregistry compiler options are mutually exclusive. Specifying -qtempinc implies -qnotemplateregistry. Similarly, specifying -qtemplateregistry implies -qnotempinc. However, specifying -qnotempinc does not imply -qtemplateregistry.

Specifying either -qtempinc or -qtemplateregistry implies -qtmplinst=auto.

Predefined macros

__TEMPINC__ is predefined to 1 when -qtempinc is in effect; otherwise, it is not defined.

Examples

To compile the file myprogram.C and place the generated include files for the template functions in the /tmp/mytemplates directory, enter:
 xlc++ myprogram.C -qtempinc=/tmp/mytemplates

Related information