Node: Objective-C Dialect Options, Next: Language Independent Options, Previous: C++ Dialect Options, Up: Invoking GCC
This section describes the command-line options that are only meaningful
for Objective-C programs; but you can also use most of the GNU compiler
options regardless of what language your program is in. For example,
you might compile a file some_class.m
like this:
gcc -g -fgnu-runtime -O -c some_class.m
In this example, only -fgnu-runtime
is an option meant only for
Objective-C programs; you can use the other options with any language
supported by GCC.
Here is a list of options that are only for compiling Objective-C programs:
-fconstant-string-class=
class-name
@"..."
. The default
class name is NXConstantString
.
-fgnu-runtime
-fnext-runtime
-gen-decls
sourcename.decl
.
-Wno-protocol
-Wselector