Specifying Additional Object Libraries - Compaq COBOL AAQ2G1FTK User Manual

Compaq computer accessories user manual
Table of Contents

Advertisement

Developing Compaq COBOL Programs
1.2 Developing Programs on Tru64 UNIX
If the symbol is undefined, U appears in the column before the symbol name. Any
symbols with a U in their names can also be displayed by this use of

1.2.3.2 Specifying Additional Object Libraries

You can control the libraries as follows:
To specify additional object library file names for
string flag to define an additional object library for
-l
occurrence of the
to the list of object libraries for
names searched (shown in the form of the appropriate
-lcob
-lcurses
-lFutil
-lots2
-lots
-lisam
-lsort
-lexc
-lm
For instance, the file name of
The following example specifies the additional library
% cobol simtest.cob -lX
In addition to the standard directories in which
file names, you can use the
string flag and
-l
(
-l
string) or directory path (
files. The standard
the
-L
The following example specifies the additional object library path
/usr/lib/mytest
% cobol simtest.cob -L/usr/lib/mytest
You can indicate that
all by specifying the
on the
standard libraries. To specify all libraries, you might use the
combination with the
You can specify the pathname and file name of an object library as you
would specify any file. Specifying each object library that resides in special
directories in this manner is an alternative to specifying the library using the
string or
-l
linker must do to locate all the needed object files.
In certain cases, you may need to specify the pathname and file name instead
of using the
with shared libraries.
When processing a C source file (
need to specify the appropriate C libraries using the
1–20 Developing Compaq COBOL Programs
-l
string flag specifies an additional file name that is added
-L
dir flag respectively adds an object library file name
-L
-L
directories are searched before directories specified by
ld
dir flag.
:
should not search its list of standard directories at
ld
flag. When you do so, you must specify all libraries
-L
command line in some form, including the directory for
cobol
dir flag on the same
-L
dir flag. This method can reduce the amount of searching the
-L
string or
dir flags for the linker to resolve global symbols
-l
-L
to locate, use the
ld
to locate. The standard COBOL library file
ld
is
.
-lcob
libcob
tries to locate the library
ld
dir flag to specify another directory. The
dir) that
ld
uses to locate all specified library
command line.
cobol
suffix) using the
.c
cobol
string flag.
-l
grep
.
to search. Thus, each
ld
string flag) are:
-l
:
libX
cobol
-L
flag in
command, you may

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents