Sun Studio 12: C User's Guide

B.1 Option Syntax

The syntax of the cc command is:

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


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 for cc is:




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).