Oracle® Solaris Studio 12.4: C++ User's Guide

Exit Print View

Updated: March 2015
 
 

3.3.9 Output Options

Table 3-10  Output Options
Option
Action
-c
Compiles only; produces object (.o) files, but suppresses linking.
-dryrun
Shows all the command lines that would be issued by the driver, but does not run any of them.
-E
Runs only the preprocessor on the C++ source files and sends the result to stdout. Does not compile.
-erroff
Suppresses compiler warning messages.
-errtags
Displays the message tag for each warning message.
-errwarn
If the indicated warning message is issued, compiler exits with a failure status.
-filt
Suppresses the filtering that the compiler applies to linker error messages.
–G
Builds a dynamic shared library instead of an executable file.
–H
Prints the path names of included files.
–o filename
Sets name of the output or executable file to filename.
–P
Only preprocesses source; outputs to .i file.
–Qproduce sourcetype
Causes the CC driver to produce output of the type sourcetype.
–s
Strips the symbol table out of the executable file.
–verbose=vlst
Controls compiler verbosity.
+w
Prints extra warnings where necessary.
+w2
Prints still more warnings where appropriate.
–w
Suppresses warning messages.
-xdumpmacros
Prints information about macros such as definition, location defined and undefined, and locations used.
-xe
Performs only syntax and semantic checking on the source file but does not produce any object or executable code.
–xhelp=flags
Displays a summary list of compiler options
–xM
Outputs makefile dependency information.
–xM1
Generates dependency information, but excludes /usr/include
–xtime
Reports execution time for each compilation phase.
–xwe
Converts all warnings to errors.
-z arg
Linker option.