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-84
SEARCH
SEARCH
For TNS programs, the SEARCH pragma directs the Binder to search a given object file
when attempting to resolve external references in a program compiled with the
RUNNABLE pragma.
For native programs compiled with the RUNNABLE pragma, the SEARCH pragma directs
the nld utility (for conventional code) or the eld or ld utility (for PIC code) to link in
the entire given object file (not just the procedure that contains the external reference).
For more details, see the:
eld Manual
ld Manual
nld Manual
object-file
specifies the name of the object file to be searched.
The pragma default settings are:
Usage Guidelines
On Guardian environment, the SEARCH pragma must be entered on the compiler
RUN command line.
The quotation marks enclosing object-file are required delimiters.
If the SEARCH pragma is specified in the same compilation unit with the XMEM,
NOXMEM, WIDE, or SYMBOLS pragmas, the SEARCH pragma must be specified after
these pragmas.
SEARCH "object-file"
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set.
G-series TNS c89 utility N.A. N.A.
TNS/R native C and C++ compilers Not set Not set
Native c89 utility N.A. N.A.
TNS/E native C and C++ compilers Not set Not set