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

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-103
SYNTAX
Usage Guidelines
For native C and C++ programs, the SYMBOLS pragma can be entered only on the
compiler RUN command line or be specified with the -g option of the c89 utility.
For TNS C and C++ programs, the SYMBOLS pragma must appear on the compiler
RUN command line or at the start of the source text before any declarations or
source code statements.
The SYMBOLS pragma affects the INSPECT pragmas: if you specify SYMBOLS, the
compiler automatically enables Visual Inspect and the source-level symbolic
debugger, as though you had explicitly specified INSPECT.
In native mode, the SYMBOLS pragma cannot include the NODEFINES option.
SYNTAX
The SYNTAX pragma directs the compiler to not generate an object file but merely to
check the source text for syntactic and semantic errors.
The pragma default settings are:
Usage Guidelines
For TNS C and C++ programs, the SYNTAX pragma must appear on the compiler
RUN command line or at the start of the source text before any declarations or
source code statements.
For native C and C++ programs, the SYNTAX pragma can be entered on the
compiler RUN command line or be specified with the -Wsyntax flag of the c89
utility.
SYNTAX
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set Not set
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not set Not set