-qtempinc

C++ only

Description

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        .-tempinc--+--------------+-.
        |          '-=--directory-' |
>>- -q--+-notempinc-----------------+--------------------------><

Notes

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.

When you specify -qtempinc, the compiler assigns a value of 1 to the __TEMPINC__ macro. This assignment will not occur if -qnotempinc has been specified.

Example

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