Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
C/C++ Build Errors
 Fatal Error C1023

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
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 What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Possible Cause      Chuckles UK   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Error may be caused by /Zm compiler option      Simon Heather ... Thomas Lee   |   Edit   |   Show History
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.
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker