Share via


/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

Parameters

Parameter

Description

pathname

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

Remarks

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.

Example

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

See Also

Reference

Compiler Options

/P (Preprocess to a File)

Specifying the Pathname