tempinc

Applies to C++

Purpose

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

Syntax

        .-notempinc-----------------.
>>- -q--+-tempinc--+--------------+-+--------------------------><
                   '-=--directory-'
 
 

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.

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 References

Compiler Command Line Options
templateregistry

See also Using C++ templates. IBM Copyright 2003