Export (0) Print
Expand All

/Fi (Preprocess Output File Name)

Specifies the name of the output file to which the /P (Preprocess to a File) compiler option writes preprocessed output.

/Fipathname

Parameter

Description

pathname

The name and path of the output file produced by the /P compiler option.

Use the /Fi compiler option in combination with the /P compiler option.

If you specify only a path for the pathname parameter, the base name of the source file is used as the base name of the preprocessed output file. The pathname parameter does not require a particular file name extension. However, an extension of ".i" is used if you do not specify a file name extension.

The following command line preprocesses PROGRAM.cpp, preserves comments, adds #line directives, and writes the result to the MYPROCESS.i file.

CL /P /FiMYPROCESS.I PROGRAM.CPP
Show:
© 2014 Microsoft