SQL/MP Programming Manual for COBOL85

Explicit Program Compilation
HP NonStop SQL/MP Programming Manual for COBOL85429326-004
6-14
Running the COBOL85 Compiler in the OSS
Environment
cbl
cob
is a suffix identifying file.cbl or file.cob as a COBOL source program to
be compiled and (optionally) bound.
a
is a suffix identifying file.a as a library of object files (typically produced by
the ar utility) to be passed directly to the Binder.
o
is a suffix identifying file.o as an object file produced by a previous COBOL
compilation to be passed directly to the Binder.
so
is a suffix identifying file.so as a shared run-time library (SRL) produced by
the Binder. The Binder uses the SRL to resolve external references. You
cannot use file.so with the -WBstatic flag.
-l library
is a sequence of characters whose effect depends on the binding mode. If
static binding is selected (-WBstatic flag), the library liblibrary.a is
searched. If dynamic binding is selected (by default or by the -WBdynamic
flag), the library liblibrary.so is searched, and if it is not found, the library
liblibrary.a is searched. You can repeat this operand, specifying several
libraries. They are searched in the order specified.
If you specify a file name that includes one or more directory names, the
compiler searches that file. If you specify a string of characters without
backslashes (\), the compiler uses that to build the name as described
previously.
Table 6-1. OSS cobol Utility Flags (page 1 of 3)
-c Directs the cobol utility to compile the specified source
files but not to bind them or remove any object files that
are created.
For source files of the form file.cbl, create object files
of the form file.o in the current directory.
-g Directs the cobol utility to produce information for
symbolic debugging in the object or executable files.
-L directory Directs the cobol utility to search directory for the files
named in -l operands before searching for them in the
default places (/lib, /usr/lib, and
/usr/local/lib).
If you repeat this command, directories are searched in the
order specified.