Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (c) c89(1)
file.ecxx A C++ language source le containing embedded NonStop SQL/MX information to be
preprocessed, compiled, and optionally linked
file.i A preprocessed C source le to be compiled and optionally linked
file.ii A preprocessed C++ source le to be compiled and optionally linked
file.m A module denition le (MDF) containing NonStop SQL/MX information for a
corresponding C source le
file.o An object le passed directly to a linker utility
file.so A dynamic-link library (DLL) containing position-independent code (PIC) for use by
the eld, ld,orrld utility
file.sql A C language source le containing embedded NonStop SQL/MX information to be
preprocessed, compiled, and optionally linked
file.srl A shared run-time library passed directly to the nld utility
-l library A le to be searched by a linker utility to resolve current unresolved external refer-
ences; ld or eld searches for les named liblibrary.so and liblibrary.a, nld searches for
les named liblibrary.srl and liblibrary.a
A library is searched when its name is encountered, so the placement of -l is
signicant. See the Standard Libraries subsection for more details.
-WBdllsonly
Species that the linker utility uses dynamic linking when searching for dynamic-link
libraries specied in subsequent -l operands; placement of this operand is signicant
(refer to the Dynamic and Static Linking subsection for details)
-WBdynamic
Species that the linker utility uses dynamic linking when searching for libraries
specied in subsequent -l operands; placement of this operand is signicant (refer to
the Dynamic and Static Linking subsection for details)
-WBstatic
Species that the linker utility uses static linking when searching for libraries specied
in subsequent -l operands. Placement of this operand is signicant. Refer to the
Dynamic and Static Linking subsection for details.
Input Files
An input le is one of the following:
A text le containing a C language or C++ language source program
An object le in the format produced by the command c89 -c
A library of object les in the format produced by archiving zero or more object les
using the ar command
A linkle or loadle produced by the eld or ld utility
An executable le produced by the nld utility
527188-007 Hewlett-Packard Company 223