Using the -qtempinc compiler option

To use -qtempinc, you must structure your application as follows:

Note: You can also use -qtemplateregistry that provides more benefits than -qtempinc, and does not require modifications to your source files. For details, see -qtemplateregistry (C++ only) in the XL C/C++ Compiler Reference.