Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
nmcobol(1) OSS Shell and Utilities Reference Manual
2. The command
nmcobol -c test1.cbl
compiles the source file test1.cbl into an object file test1.o.
3. The command
nmcobol -g -o test2 x.cbl y.cbl z.cbl
compiles source files x.cbl, y.cbl, and z.cbl and links the object files into a program file
test2. Symbolic information is generated by the compiler and retained by the linker utility
for debugging.
4. The command
nmcobol -o xyz -Wsql x.o y.o z.o
links the object files x.o, y.o, and z.o into a program file xyz. The NonStop SQL/MP com-
piler, sqlcomp, is then invoked to compile xyz.
5. The command
nmcobol -Wnolink -Wsql="catalog \$abc.def" xyz
invokes the NonStop SQL/MP compiler, sqlcomp, on program file xyz without going
through the linking process. In addition to the input filename xyz, the catalog option is
passed to the NonStop SQL/MP compiler.
6. The command
nmcobol -o testprog -L . -L /usr/test/lib testprog.cbl -l tdm
compiles the COBOL85 language source program testprog.cbl and links the object file
with the library specified in the -l operand. It also links the object file with a shared run-
time library, if found. If a shared run-time library is not found, it uses the standard C run-
time library. The nld utility produces a program file named testprog.
By default, dynamic linking is selected. nmcobol searches directories for the library tdm
specified by the -l flag in the following order and selects the first copy found:
libtdm.so in the current directory (-L .)
libtdm.a in the current directory (-L .)
libtdm.so in /usr/test/lib (-L /usr/test/lib)
libtdm.a in /usr/test/lib (-L /usr/test/lib)
libtdm.so in /lib (by default)
libtdm.a in /lib (by default)
libtdm.so in /nonnative/usr/lib (by default)
libtdm.a in /nonnative/usr/lib (by default)
libtdm.so in /usr/lib (by default)
libtdm.a in /usr/lib (by default)
libtdm.so in /usr/local/lib (by default)
libtdm.a in /usr/local/lib (by default)
6−68 Hewlett-Packard Company 527188-003