Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

ecobol(1) OSS Shell and Utilities Reference Manual
is used and annotated source les that contain embedded module denitions are
produced instead of MDF les, while restrictions associated with release 1.8 or
earlier are ignored.
TMPDIR Determines the pathname that overrides the default directory for temporary les
created by ecobol and components it invokes. By default, temporary les are
stored in the /tmp directory. If TMPDIR is set to a directory that does not exist
or is not writable, ecobol uses the default directory as described on the temp-
nam(3) reference page.
Processes
With the exception of the ECOBFE and SQLCOMP processes, which is invoked as a Guardian
process, all components are invoked as OSS processes.
Standard Libraries
The following libraries are available for COBOL85 programs that call OSS functions.
-l c Contains all library functions specied in the POSIX.1 specication, except for
those functions listed as residing in the math.h header le. You can omit this
operand because the ecobol compiler automatically passes it.
-l C Contains the C++ version 2 run-time library. This library is included before the
standard C run-time library.
-l l Contains all functions required by the C language output of the lex utility that are
not made available through the -l c operand.
-l m Contains all functions referenced in the math.h header le.
-l y Contains all functions required by the C language output of the yacc utility that
are not made available through the -l c operand.
In the absence of ags that inhibit invocation of a linker utility, such as -c or -Wnolink, ecobol
passes an -l c operand to the linker utility as the last -l operand, causing the standard C library to
be searched after all other object les and libraries are loaded.
If you want the libraries to be searched in a specic order or you want linking options to be pro-
cessed in a specic order, you should invoke the linker using the eld command from the OSS shell
and not use ecobol to do the linking.
Differences Between Static and Dynamic Linking
The -WBdllsonly and -WBdynamic operands specify dynamic linking. The -WBstatic operand
species static linking.
In dynamic linking, the eld utility rst searches for a dynamic-link library (DLL). If a DLL cannot
be found, the linker utility searches for an archive le. If no archive le can be found, an error is
issued.
In static linking, the linker utility searches for an archive le but does not search for a DLL. If the
archive le cannot be found, an error is issued.
Dynamic and static linking are not exact opposites. Dynamic linking accepts either a DDL or an
archive le, but static linking accepts only an archive le.
Unlike ecobol ags, multiple -WBdllsonly, -WBdynamic, and -WBstatic operands can be
specied in a single ecobol invocation; thus, it is possible to perform dynamic linking for some -l
operands and static linking for others.
-WBdllsonly, -WBdynamic and -WBstatic operands specied to ecobol are temporarily overrid-
den by linking arguments specied in the -Weld or-Weld_obey ags.
338 Hewlett-Packard Company 527188-004