Compiler Fatal Errors C999 ...


Visual C++ Concepts: Building a C/C++ Program
Fatal Error C1023

Error Message

'file' : unexpected error with pch, try rebuilding the pch

C1023 could be caused by one of several problems, the solution to which is a rebuild of the precompiled header file.

C1023 may be caused if you attempt to use a precompiled header file on a machine other than the one on which it was built.

Tags :


Community Content

Chuckles UK
Possible Cause
We've noticed this recently, usually when developing under Windows Vista, and usually when switching between compiling using the IDE and a command line. Deleting the PCH in question usually fixes the problem until next time we switch between the source of compilation.
Tags :

Thomas Lee
Error may be caused by /Zm compiler option
I had the same problem on just one PC where some of the projects in the solution would generate this C1023 error when I re-opened the solution in Visual Studio 2005 SP1 and tried to compile the solution (I did not however do any command line compiling). I fixed the problem by removing the /Zm compiler option that was no longer needed - it had been added when compiling with the earlier Visual Studio 2003 compiler but is not needed for Visual Studio 2005 due to better heap handling.

- Simon.

Page view tracker