### /Pc Compiler Option

Syntax: | Default:
/Pc[+|-] | /P-

Use /Pc to run the preprocessor only, and create a preprocessor output file that includes the comments from the source code. The output file has the same name as the source file, with the extension .i.

Specify /Pc- to run the preprocessor only, and create a preprocessor output file with the comments stripped out. The output file has the same name as the source file, with the extension .i. /Pc- is equivalent to /P[+].

By default, both the compiler and preprocessor run, and no preprocessor output is generated.

/P, /Pc, /Pd, and /Pe can be used in combination with each other. For example, specify /Pcde to preserve comments, suppress line directives, and redirect the preprocessor output to stdout.

Preprocessor

Summary of Compiler Options