Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
c89(1) OSS Shell and Utilities Reference Manual
-Wversion1 | -Wversion2 | -Wversion3
Specifies which C++ dialect to compile.
-Wversion1 specifies the original version, released with D40. This is the default for
systems with a Release Version Update (RVU) prior to G06.00. This value is only
valid for TNS/R-targeted C++ compilations.
-Wversion2 specifies the dialect released with D45. This version supports such
features as the bool type, namespaces, and exceptions.
-Wversion3 specifies the dialect released with G06.20. This version supports an
ANSI/ISO Standard C++ Library corresponding to ISO/IEC IS 14882. This is the
default for TNS/R systems beginning with RVU G06.00 and for TNS/E systems begin-
ning with RVU H06.01.
These three dialects are not compatible.
All modules of a C++ program must be compiled and linked using the same dialect.
-Ww Suppresses the printing of compiler warning messages. This flag overrides any
-Wwarn or -Wnowarn flags.
-W[no]warn[=w [,w ] ... ]
For each w value that appears, this flag enables [disables] the compiler warning mes-
sage specified by w.
Declaring a w value enables [disables] the specified message. Specifying -Wwarn
[-Wnowarn] by itself enables [disables] all compiler warning messages.
If -Wwarn=w is specified, then -Wnowarn must also be specified or the -Wwarn=w
flag is ignored. If -Wnowarn=w is specified, then -Wwarn need not be specified.
If white space is present after the commas, the list of warning message numbers should
be enclosed in quotation marks.
-Wwarn is the default specification for this flag. -Ww overrides the -W[no]warn flag.
-Wx Strips part of the symbol table from the output object file but keeps information neces-
sary for the object file to be used as input to a linker utility again. This flag is typically
used with -Wr.
Multiple instances of the -D, -I, and -U flags and of the -l operands can be specified.
The position of -l library operands within a list of flags affects the order in which the libraries are
searched.
The order of specifying the -I and -L flags is significant.
Quotation marks around string values in flags are optional but recommended to avoid errors
caused by shell substitutions or deletions.
Refer
to the C/C++ Programmer’s Guide for details.
DESCRIPTION
c89 is a driver program for the native C and C++ language compilation system. This reference
page describes using c89 in the OSS environment.
c89 performs simple validation of the flags and operands from the arguments on its command
line and, depending on those arguments, invokes components of the language compilation sys-
tem. c89 does not verify the existence of files it passes to compilation system components. It
does verify that the operand suffix identifies a valid operand to pass to compilation system com-
ponents. c89 and the components it runs issue messages to the standard error file.
2−22 Hewlett-Packard Company 527188-021