Tells the compiler to create a precompiled header file.
- Is the name of a C/C++ header file, which is included in the source file using an #include preprocessor directive.
- The compiler does not create or use precompiled headers unless you tell it to do so.
This option tells the compiler to create a precompiled header (PCH) file. It is supported only for single source file compilations.
filenameis specified, the compiler creates a precompiled header file from the headers in the C/C++ program up to and including the C/C++ header specified.
If you do not specify
filename, the compiler compiles all code up to the end of the source file, or to the point in the source file where a hdrstop occurs. The default name for the resulting file is the name of the source file with extension .pchi.
This option cannot be used in the same compilation as the
On Linux* and
/Ycis equivalent to the