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 (216718)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q216718

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"


Modification Type:MajorLast Reviewed:10/3/2005
Keywords:kbBug kbCompiler kbCPPonly kbfix kbVS600sp3fix KB216718 kbAudDeveloper