/Fi Compiler Option

Syntax: Default:
/Fi[+|-] /Fi-
/Fi[dir][name]  

Use /Fi to create precompiled header files.

If you specify a name or directory with the option, the precompiled headers are placed in a file with that name and in that directory.

If you do not specify a name or directory, the file is named csetc.pch (if the next source file is a C file) or csetcpp.pch (if the next source file is a C++ file), and placed in the current working directory.

You can also use the #pragma hdrfile directive to tell the compiler what file to generate. You must still specify /Fi.

Use the /Si option to use the precompiled header files. Use /Fi and /Si in combination to ensure that your precompiled header files are always up to date.

Note: The file you generate (/Fi) must be the same file you use (/Si). If you specify different filenames or directories with the two options, the name or directory specified last is used with both options. Filenames or directories specified with #pragma hdrfile override filenames or directories specified with options.

By default, the compiler does not create a precompiled header file.



Precompiled Headers


Summary of Compiler Options