COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Table 88 Linker Options That Export Program Names
Option exports ...
Only the specified program nameAll program names in the source fileEnvironment
ELD (-exportprogram-name )ELD (-export_all)Guardian
-Weld="-exportprogram-name"-Weld="-export_all"OSS and PC
Topics:
Building a DLL From a Single Source File
Building a DLL from Multiple Source Files
Specifying a DLL
Building a DLL From a Single Source File
The single source file from which you build the DLL can contain one or more source programs.
You can build a DLL from a single source file in either one step or two: either compile the source
file and have the compiler call the linker, or compile the source file and call the linker yourself.
(For linker instructions, see the eld Manual.)
Topics:
Guardian Environment: One-Step Method
Guardian Environment: Two-Step Method
OSS Environment: One-Step Method
OSS Environment: Two-Step Method
PC Environment: One-Step Method
PC Environment: Two-Step Method
Guardian Environment: One-Step Method
Compile the source file with these directives:
SHARED (page 568)
RUNNABLE (page 562)
ELD (page 548) with either of these options:
-export_all, which exports all program names in the source file
-export program-name, which exports only the specified program name. You must
repeat this option for every program name that you want to export.
The resulting loadfile is a DLL.
The command in Example 163 compiles the source file LIB1 and links the resulting object file,
creating a DLL named MYDLL.
Dynamic-Link Libraries (DLLs) 601