C/C++ Programmer's Guide (G06.25+)
Compiling, Binding, and Accelerating TNS C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
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 details, see SSV on page 13-94.
pragma
is a C compiler pragma.
The following 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.
•
Cprep and Cfront both send error and warning messages to stderr. The default
location for stderr is the terminal. You can assign stderr to a specific file and
collect all Cprep and Cfront error and warning messages there.
[NO]CHECK RUNNABLE
COLUMNS SECTION (source code only)
ERRORS SSV (command line only)
[NO]NEST [NO]WARN
[NO]OLDCALLS [NO]WIDE