FIX: C1001: Compiler File P2symtab.c, Line 878

Last reviewed: September 19, 1997
Article ID: Q141443
4.00 WINDOWS NT kbtool kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft C/C++ Compiler (CL.EXE) included with: Microsoft Visual C++, 32-bit Edition, version 4.0

SYMPTOMS

When compiling a .cpp file using a different incremental compilation option from its precompiled header, the compiler gives this error message:

   fatal error C1001: INTERNAL COMPILER ERROR
   (compiler file '...\p2symtab.c', line 878)
   Please choose the Technical Support command on the Visual C++
   Help menu, or open the Technical Support help file for more information

CAUSE

The compiler was not designed to compile code where the precompiled header (.pch) file has different command line options from the code that includes the precompiled header file.

RESOLUTION

Regenerate the precompiled header with the new incremental compilation option, or rebuild the project.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ 4.1.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a new MFC AppWizard .exe file.

    On the File menu, click New. Select Project Workspace, and then click the OK button. In the Type list box, specify MFC AppWizard (exe). In the Name Edit Control box, type a name for your project (for example "Test"), and then click the Create button. Click the Finish button from the MFC AppWizard dialog box, and then click OK from the New Project Information dialog box.

  2. Make sure 'Use Precompiled Header File' is enabled.

    On the Build menu, click Settings, and then click the C/C++ tab. Select Precompiled headers in the category list box. Select the 'Use precompiled header file' option, and in the 'through Header edit control' box, type Stdafx.h.

  3. Rebuild the project.

    On the Build menu, click Rebuild All.

  4. Change the state of the Enable Incremental Compilation option.

    On the Build menu, click Settings, and click the C/C++ tab. Select Customize in the category list box. Select the Enable Incremental Compilation check box to change its state.

  5. Compile the MainFrm.cpp file.

    Click the FileView tab. Select the MainFrm.cpp file from the file view. Then on the Build menu, click Compile. This will cause the compiler to generate the INTERNAL COMPILER ERROR.


Additional reference words: 4.00 10.00 4.10 10.10
KBCategory: kbtool kbbuglist kbfixlist
KBSubcategory: CPPIss vcbuglist400 vcfixlist410
Keywords : CPPIss vcbuglist400 vcfixlist410 kbbuglist kbfixlist kbtool
Version : 4.00
Platform : NT WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.