C/C++ Programmer's Guide (G06.25+)
Compiling and Linking TNS/R Native C and C++ 
Programs
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
16-11
Compiling a Module
OUT listing
specifies the file to which the TNS/R native C compiler writes the compiler listing. 
When specified, listing is usually a spooler location. If you omit the OUT option, 
the compiler writes the listing to your current default output file. If the file already 
exists, the compiler attempts to delete the file and then continue.
run-options
is a comma-separated list of additional options for the RUN command. These 
options are described in the TACL Reference Manual.
object
specifies the file to which the TNS/R native C or C++ compiler writes the object 
code for the source text. If you do not specify an object file, the compiler writes the 
object code to the file OBJECT in your current default volume and subvolume. If 
OBJECT cannot be created, the compiler writes the object code to the file 
ZZBInnnn (where nnnn is a unique four-digit number) in your current default 
volume and subvolume. If you are compiling PIC, the compiler writes the object 
code to ZZLDFnnn.
compile-option
modifies compiler operation by specifying a compiler pragma or defining a 
preprocessor symbol.
pragma
is any valid command-line compiler pragma.
define identifier [ constant ]
defines identifier as a preprocessor symbol. If identifier is followed by 
a constant, identifier is defined as an object-like macro that expands to 
the given value. define is equivalent to using the #define preprocessor 
directive in source text.
undefine identifier
deletes identifier as a preprocessor symbol. Using undefine is 
equivalent to using the #undef preprocessor directive in source text.
Usage Guidelines
•
The compiler accesses source files as text-type logical files. Consequently, the 
source files you specify in a module must represent physical file types that the 
compiler can access as text-type logical files. 










