Compilation modes
The C++ compilation system has four compilation modes that correspond to
degrees of compliance with the proposed standard and with cfront.
You can specify which of these compilation modes the compiler should use to
interpret your code by using the -X option.
-X str controls the interpretation of the C++ source
code with respect to language
dialect.
The option argument str can be one of the following:
d-
Compile the default dialect of the language. This implements
almost all of the ISO C++ standard, but with less strict
checking than in the next two options.
See
``C++ dialect accepted''
below for a more detailed
description of this dialect. This option is the default.
w-
Enable strict ISO conformance mode.
This mode issues warnings when features not in the ISO standard
are used, and disables features that conflict with the standard.
e-
Same as -Xw except that errors are issued instead of warnings.
o-
Enable old cfront transition mode.
This causes the compiler to accept language constructs and anachronisms that,
while not part of the C++ language definition, are accepted by the cfront C++
Language System releases 2.1 or 3.0.x.
Use of these constructs and anachronisms
is discouraged unless they occur in existing code that is
difficult to change.
Next topic:
C++ dialect accepted
Previous topic:
C++ language
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004