: .
开发工具
-+ Treat .c files as C++ source code.
-bdynamic, -bstatic
Determines which types of library files are searched by
the linkage editor.
-brtl Tells the linkage editor to accept both .so and .a
library file types.
-B<prefix>
Construct alternate compiler/assembler/linkage editor
program names. <prefix> is added to the beginning of
the standard program names.
-c Do not send object files to the linkage editor.
-C Write comments to output when doing preprocessing,
used with -E and -P.
-D<name>[=<def>]
Define <name> as in #define directive. If <def> is
not specified, 1 is assumed.
-E Preprocess but do not compile; output goes to stdout
-f<filename>
Passes to the linkage editor the filename of a file
containing a list of input files to be processed.
-F<x>[:<stanza>]
Use alternate configuration file <x> with optional
<stanza>. If <stanza> is not specified, the assumed stanza
is the name of the command used to invoke the compiler.
-g Produce information for the debugger.
-G Tells the linkage editor to create a dynamic library.
-I<dir> Search in directory <dir> for include files that
do not start with an absolute path.
-l<key> Search the specified library file,
where <key> selects the file lib<key>.a.
-L<dir> Search in directory <dir> for files specified by -l<key>.
-ma G
cc编译器命令参考 来自淘豆网m.daumloan.com转载请标明出处.