C/C++ Programmer's Guide (G06.25+)

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-66
NLD(arg)
class bad_exception()
class bad_typeid()
Storage allocation and exception handling are common ( except for the classes
defined in the stdexcept header ).
Example
See Using the Neutral C++ Dialect on page 5-13.
NLD(arg)
The NLD command-line directive specifies arguments to be passed to the nld utility,
the linker for TNS/R native code that is not PIC (Position-Independent Code).
arg is any argument accepted by the nld utility. Enclose arguments in
parentheses, separated by spaces.
For details on valid syntax and semantics, see the nld Manual.
The pragma default settings are:
Usage Guidelines
On Guardian, the NLD pragma must be entered on the compiler RUN command
line for TNS/R native C and C++. On OSS, specify the NLD pragma by using the
-Wnld=arg option with the c89 utility.
If you are linking TNS/R PIC (Position-Independent Code), you must use the
LD(arg) pragma to specify arguments to the ld utility.
If you are linking TNS/E PIC (Position-Independent Code), you must use the
-Weld=arg command line flag to specify arguments to the eld utility.
The NLD pragma does not invoke the linker. To invoke nld, you must include other
pragmas such as RUNNABLE or LINKFILE. If nld is not invoked, the NLD pragma
is ignored.
You cannot use the NLD directive if you also use either of the following directives:
NLD(arg)
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
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 N.A. N.A.