The +inst_implicit_include option specifies that the compiler use a process similar to that of the cfront source rule for locating template definition files. For the cfront based HP C++ compiler, if you are using default instantiation (that is, if you are not using a map file), you must have a template definition file for each template declaration file, and these must have the same file name prefix.

This restriction does not apply in HP aC++. Therefore, if your code was written for HP C++ and you wish to follow this rule when compiling with HP aC++, you need to specify the +inst_implicit_include option.

This option is strongly discouraged and the sources should be modified to conform to the standard.

Example:

aCC +inst_implicit_include prog.C

If prog.C includes a template declaration file named template.h, the compiler assumes a template definition file name determined by the +inst_include_suffixes option.

See Chapter 5: “Using HP aC++ Templates” (page 132) for more information.

NOTE: This option is supported in C++ only and ignored in C-mode.

+inst_include_suffixes

+inst_include_suffixes "list"

The +inst_include_suffixes option specifies the file name extensions that the compiler uses to locate template definition files. This option must be used with the +inst_implicit_include option.

list is a set of space separated file extensions or suffixes, enclosed in quotes, that template definition files can have.

The default extensions in order of precedence are:

.c

.C

.cxx

.CXX

.cc

.CC

.cpp

User-specified extensions must begin with a dot and must not exceed four characters in total. Any extension that does not follow these rules causes a warning and is ignored.

These restrictions do not apply in HP aC++. Therefore, if your code was written for HP C++ and you wish to follow the cfront-based HP C++ template definition file naming conventions when compiling with HP aC++, you need to specify the +inst_include_suffixes option.

The following example specifies that template definition files can have extensions of .c or .C:

+inst_include_suffixes ".c .C"

The +inst_include_suffixes option is equivalent to the HP C++ -ptSoption.

See Chapter 5: “Using HP aC++ Templates” (page 132) for more information.

NOTE: This option is supported in C++ only and ignored in C-mode.

Trigraph Processing Suppression Option

The -notrigraphoption suppresses trigraph processing.

92 Command-Line Options