Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

nmcobol(1) OSS Shell and Utilities Reference Manual
-WBdynamic Species that the linker utility should use dynamic linking when
searching for libraries specied in subsequent operands of the
form -l library. Dynamic linking is in effect until a -WBstatic
ag is specied. -WBdynamic is the default setting. Refer to the
Differences Between Dynamic and Static Linking subsection
for details.
-WBstatic Species that the linker utility should use static linking when
searching for libraries specied in subsequent operands of the
form -l library. Static linking is in effect until a -WBdynamic
ag is specied. -WBdynamic, not -WBstatic, is the default set-
ting. Refer to the Differences Between Dynamic and Static
Linking subsection for details.
You cannot use these ags if you use the -c or -Wnolink ag.
-Wcall_shared | -Wnon_shared | -Wshared
Species the kind of linked le that should be created:
-Wcall_shared Directs the compiler to create a position-independent code (PIC)
program loadle using the ld linker. If you also specify the -c or
-Wnolink ag, the le created is a PIC linkle instead.
When you use this ag, you cannot use the following ags:
-Wnld or -Wnld_obey
-Wnon_shared
Directs the compiler to create non-PIC object les using the nld
linker. This is the default behavior.
When you use this ag, you cannot use the following ags:
-Wld or -Wld_obey
-Wshared Directs the compiler to create a PIC dynamic-link library (DLL)
using the ld linker.
When you use this ag, you cannot use the following ags:
-Wnld or -Wnld_obey
-Wcobol="args"
Passes to the NMCOBOL compiler the directives in the argument string enclosed
in quotation marks. This string follows any directives generated by other ags. If
you repeat this ag, arguments are passed to the compiler in the order specied.
-Wcolumns=n Sets the maximum number of columns for an input le to n, where n is a number in
the range 12 through 32767. If n is greater than 132, 132 is used. The compiler
ignores text in columns beyond n.
-Wcopylib="pathname"
Species pathname as the source le to use as the default COPY library for any
COPY statement in the source program that does not specify a library. If you
repeat this ag, the last le specied is the default COPY library. The default is to
look for a le called COPYLIB in the current working directory.
656 Hewlett-Packard Company 527188-003