DCE Application Programming Guide
Building, Running, and Debugging NonStop DCE
Applications
HP NonStop DCE Application Programming Guide—429551-003
4-2
Building NonStop DCE Programs
Note that when linking a TNS/R native PIC program, you must use the ld linker. When
linking a TNS/E native program, you must use the eld linker to link the DLL located at
\$system.zdce.ldce. You must also specify the specify the -WTandem_float flag so
that the program uses TNS floating-point format, and not IEEE floating-point format, as
in the following example:
/usr/bin/c89 -o my_server my_server.c -Wextensions
-Wfileldalign=shared2 -WTandem_float
-Weld="set libname \$system.zdce.ldce"
The TNS/R and TNS/E native environments permit a user application to have a single
user library. To use a private user library in the TNS/R native environment, you must
link your library file with a linkable version of the TNS/R SRL. To use a private user
library in the TNS/E native environment, you must link your library file with the TNS/E
DLL. The TNS/R SRL is available as a Guardian file in the installation subvolume or
target subvolume with one of these file identifiers:
The TNS/E DLL is available as a Guardian file in the installation subvolume or target
subvolume with one of these file identifiers:
To link your library file, use the file /usr/lib/dceul.obey and an appropriately
modified form of the following OSS command line (this example assumes that the
application uses the domestic USA version of the linkable object library):
/usr/bin/nld -o /G/ISV-volume/ISV-subvolume/user-library-name
-ul -verbose -obey /usr/lib/libc.obey -obey /usr/lib/dceul.obey
/G/ISV-volume/ISV-subvolume/LDCEUOBJ
additional-object-files-to be-linked-into-library
Note that this example uses the nld linker to link a non-PIC library file. Use the ld
linker to link a TNS/R native PIC library file, and use the eld linker to link a TNS/E
native library file.
To rebuild a NonStop DCE TNS application as a TNS/R native application, see the
guidelines in the TNS/R Native Application Migration Guide and the appropriate
programming language manual. To rebuild a NonStop DCE TNS application as a
TNS/E native program, see the guidelines in the TNS/E Native Application Conversion
Guide and the appropriate language manual.
LDCEIOBJ For exported versions of NonStop DCE
LDCEUOBJ For USA versions of NonStop DCE
LDCEINTS For exported versions of NonStop DCE
LDCEUSA For USA versions of NonStop DCE