Sun Studio 12 Update 1: C User's Guide

B.1 Option Syntax

The syntax of the cc command is:


% cc [options] filenames [libraries]...

where:

See option -YP, dir to change the default directories used for finding libraries. dir is a colon-separated path list. The default library search order can be seen by using the -### or -xdryrun option and examining the -Y option of the ld invocation.

cc uses getopt to parse command-line options. Options are treated as a single letter or a single letter followed by an argument. See getopt(3c).