FIX: You receive a "Fatal error C1001" error message when you compile by using the /ZI and /Yc command-line switches without a file name in Visual C++ 6.0

This article was previously published under Q216718
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
When you compile in Microsoft Visual C++ by using the /ZI and /Yc command-line switches without a file name, you may receive the following error message:
fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'E:\8168\vc98\p2\src\P2\main.c', line 494)
RESOLUTION
To resolve this problem, obtain the latest service pack for Visual Studio 6.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
194022 Visual Studio 6.0 service packs, what, where, why
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
194022 Visual Studio 6.0 service packs, what, where, why
194295 How to tell that a Visual Studio service pack is installed
WORKAROUND
To work around this problem, use one of the following methods:
  • Compile by using the /Zi command-line switch instead of the /ZI command-line switch.
  • Supply a file name by using the /Yc command-line switch. For example, use the following syntax:
    /Yc"FileName"
Properties

Article ID: 216718 - Last Review: 02/21/2014 00:33:39 - Revision: 3.0

  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
  • kbnosurvey kbarchive kbbug kbfix kbcpponly kbcompiler kbvs600sp3fix KB216718
Feedback