C++ User's Guide

Output Options

The following output options are listed in alphabetical order.

Action 

Option 

Details  

Compiles only; produces object (.o) files, but suppresses linking.

-c

"-c"

Shows options passed by driver to the compiler, but does not compile. 

-dryrun

"-dryrun"

Runs only preprocessor on C++ source files, and sends result to stdout; does not compile.

-E

"-E"

Same as -help.

-flags

"-flags"

Builds a dynamic shared library instead of an executable file. 

-G

"-G"

Prints path names of included files. 

-H

"-H"

Explains where to get information about migrating to 5.0 

-migration

"-migration"

Sets name of the output or executable file to filename.

-o filename

"-o filename"

Only preprocesses source; outputs to .i file.

-P

"-P"

Causes the CC driver to produce output of the type sourcetype.

-Qproduce sourcetype

"-Qproduce sourcetype"

Displays the contents of the online README file.

-readme

"-readme"

Strips the symbol table from the executable file. 

-s

"-s"

Controls compiler verbosity. 

-verbose=vlst

"-verbose=v[,...v]"

Prints extra warnings where necessary. 

+w

"+w"

Suppresses warning messages. 

-w

"-w"

Outputs makefile dependency information. 

-xM

"-xM"

Generates dependency information, but excludes 

/usr/include.

-xM1

"-xM1"

Produces table information for the Sun WorkShop source code browser. 

-xsb

"-xsb"

Produces only source browser information, no compilation.

-xsbfast

"-xsbfast"

Reports execution time for each compilation phase. 

-xtime

"-xtime"

Converts all warnings to errors by returning non-zero exit status. 

-xwe

"-xwe"