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-16
Working in the G-Series OSS Environment
TNS c89 Operands
An operand is in the form of either a pathname or -l library. Note also that TNS
c89 recognizes the operands in Table 15-3.
-Wsystype=guardian
Specifies the Guardian execution environment.
-Wsystype=oss
Specifies the OSS execution environment (this is the default
environment).
-Wverbose
Displays more detailed information during the program
generation process from the C compiler, Binder, Accelerator,
and SQL compiler.
In particular, Cfront does not default to sending the Cfront
banner or error counts to stderr when running in the OSS
environment. Specify the -Wverbose flag to cause the
banner and error counts to be sent to stderr.
Table 15-3. TNS c89 Operands
Operand Function
file.C
A C++ language source file to be processed by Cprep and Cfront,
compiled by the C compiler, and optionally processed by the Binder.
file.cpp
A C++ language source file to be processed by Cprep and Cfront,
compiled by the C compiler, and optionally processed by the Binder.
(This operand is the same as file.C.)
file.a
A library of object files typically produced by the ar utility and passed
directly to the Binder.
file.o
An object file produced by c89 -c and passed directly to the Binder.
file.so
A shared run-time library produced by Binder. The shared run-time
library is used by the Binder to resolve external references.
-l library
In the static binding mode, search for the library named
liblibrary.a. In the dynamic binding mode, search for the library
named liblibrary.so. If liblibrary.so is not found,
liblibrary.a is used. For example, if you use the operand -l
cre,the libraries searched for are libcre.a and libcre.so.
A library is searched when its name is encountered, so the placement
of a -l operand is significant.
Table 15-2. Commonly Used TNS c89 Flags (page2of2)
Flag Function