DLL Programmer's Guide for TNS/R Systems
Sample Sessions and Usage Notes
DLL Programmer’s Guide for TNS/R Systems—522203-002
6-10
Sample Session Three
The compile for helloc is as follows:
NMC /IN helloc/helloo;suppress, OPTIMIZE 0,SYMBOLS,ERRORS 
5,EXTENSIONS,call_shared
TNS/R Native Mode Risc C - T9577D46 - 30APR2003 (Mar 23 2003 19:42:26)
(C)2000 Compaq (C)2003 Hewlett Packard Development Company, L.P.
0 remarks were issued during compilation.
0 warnings were issued during compilation.
0 errors were detected during compilation.
Object file: helloo
Compiler statistics
 phase CPU seconds elapsed time file name
 NMC \DLLQA.$SYSTEM.SYSTEM.NMC
 CFE 0.2 00:00:01 \DLLQA.$SYSTEM.SYSTEM.CFE
 UGEN 0.0 00:00:00 \DLLQA.$SYSTEM.SYSTEM.UGEN
 AS1 0.0 00:00:00 \DLLQA.$SYSTEM.SYSTEM.AS1
 total 0.2 00:00:01 
All processes executed in CPU 03 (NSR-G)
Swap volume: \DLLQA.$SYSTEM
Build the DLL
The DLL is created with the following command line to ld.
ld helloo -o hellodll -obey $SYSTEM.SYSTEM.libcobey -L $OSS.NSKAPAT4 -shared
 -export_all
LD (T0429G09 - 30APR2003)
(C)2003 Hewlett Packard Development Company, L.P.
T0429's command line: helloo -o hellodll -obey $SYSTEM.SYSTEM.libcobey -L
 $OSS.NSKAPAT4 -shared -export_all
LD INFORMATIONAL MESSAGE **** [40056]:
 Entering OBEY file '$SYSTEM.SYSTEM.libcobey'.
LD INFORMATIONAL MESSAGE **** [40057]:
 Exiting OBEY file '$SYSTEM.SYSTEM.libcobey'.
LD INFORMATIONAL MESSAGE **** [40052]:
 '-export_all' specified
LD INFORMATIONAL MESSAGE **** [40063]:
 Creating a DLL and -dllname was not specified; using 'hellodll' as
 -dllname value.
Comment: lots of other informational messages edited out . . .
LD INFORMATIONAL MESSAGE **** [40065]:
 Creating a DLL without -t option specified. LD will use 0x60000000 as
 the default value.
LD reported 0 errors.
LD reported 0 warnings.
LD reported 16 informational messages.
LD created the following named loadfile as type:
 hellodll (ELF, dynamic link library).
LD Timestamp: 31MAR2003 13:36:57
Elapsed Time: 00:00:01










