Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
c89(1) OSS Shell and Utilities Reference Manual
-WBstatic
Specifies that the linker utility uses static linking when searching for libraries specified
in subsequent operands of the form -l library. Static linking is in effect until a
-WBdynamic flag is specified. -WBdynamic, not -WBstatic, is the default setting.
Refer to the Dynamic and Static Linking subsection for details.
-Wbuild_neutral_library
Specifies that the compiler should issue an error message when it encounters any
exported or imported interface in a DLL that depends on types marked as being incom-
patible with the neutral C++ dialect.
This flag is valid only for TNS/E-targeted C++ compilations and only when the
-Wver-
sion2 or -Wversion3 flag is also used.
-WC Retains comments when preprocessing files. Comments are removed from preproces-
sor output by default.
-Wcall_shared | -Wnon_shared | -Wshared
Directs the compiler to create a specific type of object file:
-Wcall_shared Specifies that the object file should be a PIC file; the ld or eld linker is
invoked. If the -c flag is also specified, the file is a linkfile. Otherwise,
the file is an executable object file (loadfile).
This is the default behavior for a TNS/E-targeted compilation.
You cannot use this flag if you use the -Wsrl flag.
-Wnon_shared
Specifies that the object file should not be a PIC file; the nld linker is
invoked. You can use this flag only for a TNS/R-targeted compilation;
this flag is ignored when specified for a TNS/E-targeted compilation.
This is the default behavior for a TNS/R-targeted compilation.
-Wshared Specifies that the file should be a PIC DLL; the ld or eld linker is
invoked. You cannot use this flag if you use the -c or -Wsrl flag.
-Wcolumns=c
Specifies the maximum number of columns in input source files to process. c is in the
range 20 through 32767. Text in columns beyond column c is ignored.
-Wcplusplus
Directs c89 to assume that files with a .c or .i suffix contain C++ source code, and
defines the feature-test macro __cplusplus. If linking occurs, this flag directs the
linker utility to search the C++ standard run-time library.
If this flag is omitted and none of the operand filenames end in .C, .cpp, .cc,or.cxx,
then source files are compiled as C files only and, if -c is not specified, are only linked
with the C standard library. See Standard Libraries for details.
-WDname[="value" ]
Specifies a macro that is defined only during the NonStop SQL/MX preprocessing step.
See the HP NonStop SQL/MX Programming Manual for C and COBOL for details
about its -d flag=[value] option. This flag can be specified more than once.
Note that all -D values that are supplied to c89 are automatically passed as -d options
to the NonStop SQL/MX preprocessor.
This flag is ignored unless the -Wsqlmx flag is also specified.
2−6 Hewlett-Packard Company 527188-007