C/C++ Programmer's Guide (G06.25+)

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-16
CPATHEQ
°
In all other cases, the last-column value is set by the most recently
processed COLUMNS pragma.
CPATHEQ
The CPATHEQ pragma specifies a file to be included before the compiler begins
compiling the source file. The CPATHEQ file is an EDIT file that typically contains
MAPINCLUDE pragmas to submit to the C or C++ compiler. The CPATHEQ file can also
be used to provide command-line options that exceed a single command line, such as
SSV pragmas; a CPATHEQ file that contains command-line options is not treated as part
of the command line but as a source file.
file-name
identifies a CPATHEQ file.
The pragma default settings are:
Usage Guidelines
The CPATHEQ pragma can appear only on the compiler RUN command line for the
native C and C++ compilers. For the TNS C compiler and Cfront, the CPATHEQ
pragma can appear either on the compiler RUN command line or in the source file.
If file-name is omitted, the native compiler searches for a file named CPATHEQ
in the same subvolume as the compiler. Prior to the D45 RVU, the native compilers
searched in the default subvolume of the source file. The TNS compilers also
search in the default subvolume.
For additional guidelines and examples of using a CPATHEQ file with class
libraries such as Tools.h++, see Pragmas for Tools.h++ on page 6-6.
CPATHEQ [ "file-name" ]
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility N.A. N.A.
TNS/R native C and C++ compilers Not set N.A.
Native c89 utility N.A. N.A.
TNS/E native C and C++ compilers Not set N.A.