C and C++ Preprocessor Options

-C

Includes comments in the preprocessor output. The default is to strip comments from the output.

-Dname

Defines the argument name for the preprocessor with a default value of one. This is equivalent to placing the following at the top of the first source file, #define name 1.

-Dname=string

Defines the argument name for the preprocessor with the value of string. This is equivalent to placing the following at the top of the source file, #define name string. There is no space between D and name.

-E

Invokes the compiler as a preprocessor and places the preprocessed file output on the standard output. This is useful for debugging preprocessor macros and include files.

-P

Similar to the -E option. Invokes the compiler as a preprocessor but writes the output to a file which has the name of the input file with its suffix changed to .i.

-Uname

Undefines the preprocessor symbol name. Equivalent to placing #undef name at the top of the source file. This option removes any predefined compiler symbols.

-U-

Prevents the compiler from defining any symbols. Normally, the compiler defines a set of default symbols automatically. See also -I, -I-, and -H under General Options.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.