/Pd Compiler Option

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

Use /Pd to run the preprocessor only, and send the preprocessor output to stdout.

Specify /Pd- to run the preprocessor only, and not redirect preprocessor output. Preprocessor output is written to a file that has the same name as the source file, with the extension .i. /Pd- 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