C++ Compiler Options
This appendix details the command-line options for the C++ compiler. The features described apply to all platforms except as noted; features that are unique to the Oracle Solaris OS on SPARC-based systems are identified as (SPARC), and the features that are unique to the Oracle Solaris and Oracle Linux OS on x86-based systems are identified as (x86). Features limited to the Oracle Solaris OS only are marked (Solaris); features limited only to Oracle Linux OS are marked (Linux).
The typographical conventions that are listed in the Preface are used
in this section of the manual to describe individual options.
Parentheses, braces, brackets, pipe characters, and ellipses are metacharacters used in the descriptions of the options and are
not part of the options themselves.
A.1 How Option Information Is Organized
To help you find information, compiler option descriptions are separated
into the following subsections. If the option is one that is replaced by or
identical to some other option, see the description of the other option for
full details.
Table 30 Option Subsections
|
|
Option Definition
|
A short definition immediately follows each option. (There is no heading for this
category.)
|
Values
|
If the option has one or more values, this section defines each value.
|
Defaults
|
If the option has a primary or secondary default value, it is stated here.
The primary default is the option value in effect if the option is not specified. For example,
if –compat is not specified, the default is
–compat=5.
The secondary default is the option in effect if the option is specified, but no value is
given. For example, if –compat is specified without a value, the default
is -compat=5.
|
Expansions
|
If the option has a macro expansion, it is shown in this section.
|
Examples
|
If an example is needed to illustrate the option, it is given here.
|
Interactions
|
If the option interacts with other options, the relationship is discussed here.
|
Warnings
|
Cautions regarding use of the option are noted here, as are actions that might cause
unexpected behavior.
|
See also
|
This section contains references to further information in other options or documents.
|
“Replace with” “Same as”
|
If an option has become obsolete and has been replaced by another option, the replacement
option is noted here. Options described this way might not be supported in future releases.
If two options have the same general meaning and purpose, the preferred option is referenced
here. For example, “Same as -xO” indicates that
-xO is the preferred option.
|
|