C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiling, Binding, and Accelerating TNS C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
15-5
Working in the Guardian Environment
define __cplusplus
specifies to Cprep that it is processing a C++ program.
compile-option
modifies compiler operation by specifying a compiler pragma or defining a
preprocessor symbol.
SSV-pragma
is a C compiler pragma that specifies a subvolume in which a header file is
located. For more details, see SSV on page 13-96.
pragma
is a C compiler pragma.
These TNS C compiler pragmas are intended for Cprep and can appear only in
this Cprep run command syntax or in the TNS C++ source code:
Pragmas NOXMEM and SQL are invalid for C++. If either of these pragmas
appears, Cfront issues a warning and ignores the pragma.
For a detailed description of all the C compiler pragmas, see Section 13,
Compiler Pragmas.
define identifier [ integer-constant ]
defines identifier as a preprocessor symbol. If identifier is followed by
an integer or character constant, identifier is defined as an object-like
macro that expands to the given value.
Usage Guidelines
Remember that the output that is produced from running Cprep is kept in an
intermediate file. Each time that you run Cprep, the output is added to the end of
the file. Therefore, if intermediate files exist, purge them before running Cprep
again.
The pragmas that you specify for Cprep cannot be abbreviated. You must type out
the full name for the pragma.
[NO]CHECK RUNNABLE
COLUMNS SECTION (source code only)
ERRORS
SSV (command line only)
[NO]NEST [NO]WARN
[NO]OLDCALLS [NO]WIDE