◄Up► ◄Contents► ◄Index► ◄Back► ─────C/C++ Compiler───────────────────────────────────────────────────────── Syntax: /Yc[filename] The /Yc option instructs the compiler to create a precompiled header (.PCH) file that represents the state of compilation at a certain point. No space is allowed between /Yc and <filename>. The default action of /Yc is to compile the entire source file, including every included header file. The state of the compilation is saved to a file with the base name of the source file and a .PCH extension. Because precompilation is most useful for compiling a stable body of code for use with a body of code that is under development, you will want to focus the precompilation process by using /Yc with its <filename> argument or by putting a hdrstop pragma in your source file. See: ◄hdrstop pragma► ◄Naming an Alternate .PCH Filename► The optional <filename> argument instructs the compiler to precompile all code up to and including the file specified by <filename>; the specified file must be one that is included in your source file using an #include directive. The compiled state of code that follows <filename> is not saved to the .PCH file. See: ◄Using an Existing .PCH File to Speed Compilation► See also: ◄Using Precompiled Headers in PWB► -♦-