Shared PCH usage sample in Visual Studio

This post was written by Olga Arkhipova and Xiang Fan Oftentimes, multiple projects in a Visual Studio solution use the same (or very similar) precompiled headers. As pch files are often big and building them takes a significant amount of time, this leads to the popular question: is it possible for several projects to use the same pch… Read more

Precompiled Header Files in Visual Studio 2010

Hello, this is Andy Rich from the Visual C++ front-end team. Today, I’ll be discussing the use of precompiled header files (aka PCH files) in our new intellisense architecture. Back in May, Boris briefly mentioned an intellisense optimization based on precompiled header technology. This post will elaborate on that comment by providing a glimpse into… Read more

Visual C++ Precompiled Header Errors on Windows 7

Several customers have encountered the following error while using the Visual C++ compiler on Windows 7:   fatal error C1859: ‘stdafx.pch’ unexpected precompiled header error, simply rerunning the compiler might fix this problem   This error manifests under the following conditions: ·         The Visual C++ compiler is invoked on Windows 7. ·         Precompiled header (PCH)… Read more