Microsoft KB Archive/141443

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

Article ID: 141443

Article Last Modified on 7/5/2005

-

APPLIES TO


 * Microsoft Visual C++ 4.0 Professional Edition
 * Microsoft Visual C++ 5.0 Learning Edition

-



This article was previously published under Q141443



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.



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.
 * 1) 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.
 * 1) Rebuild the project.

On the Build menu, click Rebuild All.
 * 1) 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.
 * 1) 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 query words: kbVC400bug 4.00 10.00 4.10 10.10

Keywords: kbbug kbfix kbvc410fix kbcpponly kbcompiler KB141443

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.