-qtemplaterecompile (C++ only)

Category

Template control

Pragma equivalent

None.

Purpose

Helps manage dependencies between compilation units that have been compiled using the -qtemplateregistry compiler option.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-templaterecompile---.   
>>- -q--+-notemplaterecompile-+--------------------------------><

Defaults

-qtemplaterecompile

Usage

If a source file that has been compiled previously is compiled again, the -qtemplaterecompile option consults the template registry to determine whether changes to this source file require the recompile of other compilation units. This can occur when the source file has changed in such a way that it no longer references a given instantiation and the corresponding object file previously contained the instantiation. If so, affected compilation units will be recompiled automatically.

The -qtemplaterecompile option requires that object files generated by the compiler remain in the subdirectory to which they were originally written. If your automated build process moves object files from their original subdirectory, use the -qnotemplaterecompile option whenever -qtemplateregistry is enabled.

Predefined macros

None.

Related information