DLL Programmer's Guide for TNS/E Systems
Example Code
DLL Programmer’s Guide for TNS/E Systems—527252-006
6-5
Example One
The following command input creates the DLL:
run $data01.toolsy02.eld mystro -o mystrdll -shared -export_all
eld - TNS/E Native Mode Linker - T0608H01 - 26OCT04
Copyright 2004 Hewlett-Packard Company
eld command line:
\speedy.$data01.toolsy02.eld mystro -o mystrdll -shared -export_all
**** INFORMATIONAL MESSAGE **** [1530]:
Using 'ImpImp' file: \speedy.$data01.toolsy02.zimpimp.
Output file: mystrdll (dll)
Output file timestamp: Nov 8 13:59:43 2004
No errors reported.
No warnings reported.
1 informational message reported.
Elapsed Time: 00:00:01
Now Build the Program
The next step is to create the loadfile (the whole program) by use of the linker.
ccplmain contains initialization code for the C and C++ run-time libraries. Your
version of that file will probably be located in $system.system.
ccplmain contains external references to errno and environ (which are defined in
ZCREDLL) and C_INT_INIT_COMPLETE_ , C_INT_INIT_START_ , and exit (which
are defined in ZCRTLDLL).
Note that each DLL must use an individual -lib option to be linked with eld. The
command syntax does not allow for a single -lib option followed by a list of DLLs, for
example: -lib zcredll, zcrtdll, mystrdll is not valid syntax.










