/Fi (Preprocess Output File Name)


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at -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.



pathnameThe 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.


Compiler Options
/P (Preprocess to a File)
Specifying the Pathname