HP nld Manual page 39

Table of Contents

Advertisement

nld Utility
The version, known as the C++ Dialect, is stored in one of the program's internal
structures. To see a program's C++ dialect, use the noft option
on page 5-22.
C++ Input Files
VERSION1
VERSION2
VERSION3
Mixed versions
*
When none of the input files are C++ files, the value CPP_NEUTRAL is recorded in the loadfile.
Mixing versions of C++ in a loadfile is not recommended (except for mixing
CPP_NEUTRAL with one other version). The result is either a nonfatal error or a
warning, depending on the combination:
L
CPP_NEUTRAL
I
N
CPP_V1
K
F
I
L
CPP_V2
E
CPP_V3
For information about nonfatal errors and warnings, see
and
Warnings
C++ programs require access to their run-time environments. To create an executable
C++ program, you must link to the run-time environment initialization code and the
shared run-time libraries (SRLs) your program uses. The NMC and c89 compilers
automatically link to the required items. If you use nld directly to link a C++ program,
you must specify these items in nld options. For details, see the C/C++ Programmer's
Guide.
Follow these step to create an executable C++ program using nld:
1. Link together the object code files that you compiled.
2. Link to the C++ run-time library initialization object code file:
Environment
Guardian
OSS
C++ Version Recorded in the Loadfile*
CPP_V1 (1)
CPP_V2 (2)
CPP_V3 (3)
Lowest version
CPP_NEUTRAL
Loadfile is
CPP_NEUTRAL
Loadfile is
CPP_V1
Loadfile is
CPP_V2
Loadfile is
CPP_V3
on page 10-69.
Run-Time Library Initialization Object Code File
$SYSTEM.SYSTEM.CRTLMAIN
/usr/lib/crtlmain.o
nld and noft Manual—520384-003
LINKFILE
CPP_V1
CPP_V2
Loadfile is
Loadfile is
CPP_V1
CPP_V2
Loadfile is
Warning
CPP_V1
Loadfile is
CPP_V1
Warning
Loadfile is
CPP_V2
Loadfile is
CPP_V1
Nonfatal
Nonfatal
error
error
Nonfatal Errors
2- 11
C++ Programs
LISTATTRIBUTE or LA
CPP_V3
Loadfile is
CPP_V3
Nonfatal
error
Nonfatal
error
Loadfile is
CPP_V3
on page 10-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Noft

Table of Contents