COBOL Manual for TNS/E Programs (H06.03+)
Program Compilation
HP COBOL Manual for TNS/E Programs—520347-003
11-77
SHARED
SHARED
SHARED
generates shared code (PIC) for a DLL.
CALL-SHARED
generates shared code (PIC).
NON-SHARED
is ignored.
If you put an HP COBOL program in a DLL, you must export the program name when
you build the DLL; otherwise, other programs cannot call the HP COBOL program. To
export the HP COBOL program name, use one of these ld commands:
Default: CALL-SHARED
Placement: Anywhere
Scope: The last SHARED or CALL-SHARED in the compilation unit applies to
the entire compilation unit.
Dependencies:
•
If RUNNABLE is active, SHARED uses the linker to create a PIC
library file (DLL); otherwise, SHARED creates a PIC linkfile.
•
Do not use with CALL-SHARED or UL.
References:
•
CALL-SHARED
•
RUNNABLE
•
UL
Environment ld Commands
Guardian eld (-export program-name )
or
eld (-export_all)
OSS or PC -Weld="-export program-name "
or
-Weld="-export_all"
CALL-SHARED
NON-SHARED
VST804.vsd
SHARED










