Re: Internal compiler error C1001 after SP6 installation
From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 08/30/04
- Next message: Joseph M. Newcomer: "Re: How to disable the menuitem?"
- Previous message: Joseph M. Newcomer: "Re: Cedit multiline problem - A quite hard one"
- In reply to: Sebastian Lehmann: "Internal compiler error C1001 after SP6 installation"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 30 Aug 2004 10:26:03 -0400
First, why are you putting anything at all in stdafx.h that is NOT a standard library
include, or declarations relating to standard library includes? Declaring variables like
this is completely inappropriate for stdafx.h, so get rid of all of this code and create a
header file, which you include explicitly in the modules that need it, that has this
declaration. Do NOT use stdafx.h for anything like this.
There were a few known bugs about precompiled headers, and SP6 might have fixed them but
never assumed that anyone would do something this bad in stdafx.h, and therefore cannot
cope with it.
I have no idea if this would cause the problem, but the presence of such code with the
error message referring to the same line is so suspicious that I wouldn't even try to
figure out what is wrong utnil this bogus code is removed. It is so bogus that until it is
fixed it is not particularly productive to worry about why the compiler is choking. Once
you fix the problem, if the internal errors continue, then worry about them. But get rid
of that code first! It has no place in stdafx.h.
joe
On Mon, 30 Aug 2004 12:46:40 +0200, Sebastian Lehmann <news@surf2lemmer.de> wrote:
>Hello NG,
>
>last week I installed the SP6 for my Visual Studio 6, Enterprise Edition
>(OS is Win XP Pro SP1). Unfortunately, i cannot compile several projects
>/ project configurations any longer. The following compiler error occurs
>in all cpp files:
>
>d:\source\stdafx.h(30) : fatal error C1001: INTERNAL COMPILER ERROR
> (compiler file "msc1.cpp", line 1794)
>
>- or -
>
>c:\programme\microsoft visual studio\vc98\include\excpt.h(72) : fatal
>error C1001: INTERNAL COMPILER ERROR
> (compiler file "msc1.cpp", line 1794)
>
>The stdafx.h contains a class declaration at line 30. This class is used
>to define an external variable a few lines later:
>
>class CMyApp;
>[...]
>extern CMyApp* App;
>
>The excpt.h contains in line 72:
>
>typedef enum _EXCEPTION_DISPOSITION {
>[...]
>
>As read in the MSDN, the optimizations should caused these error. Their
>resolution: disable the optimizations step by step to find out, which
>optimization causes this problem. In one project, I set down the
>optimization level from "increase speed" to "disable (debug)". After a
>rebuild, I set up the level to "increase speed" again and now I can
>compile the project with the former settings, which has once caused the
>errors listed above.
>
>In another project these errors occurs, too. But here in all
>configurations (also in the debug ones). So I cannot set down the
>optimization level to "disable (debug)", because it's already disabled.
>Nevertheless, the error occurs and I cannot compile the project any longer.
>
>My google search only bring me a knowledge base article (No. 315490),
>which confirms the problem and mentioned the use of the type "typename"
>as reason for this error. Indeed, I didn't use this type!
>
>Does anyone had similar problems after installation of SP6? Can anybody
>help me with detailed information about this error or how to resolve
>this problem? Any help is greatly appreciated.
>
>TIA,
>Sebastian.
>
>PS: I use a german version of Visual Studio. I hope I translated the
>Visual Studio specific terms correct ;)
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
- Next message: Joseph M. Newcomer: "Re: How to disable the menuitem?"
- Previous message: Joseph M. Newcomer: "Re: Cedit multiline problem - A quite hard one"
- In reply to: Sebastian Lehmann: "Internal compiler error C1001 after SP6 installation"
- Messages sorted by: [ date ] [ thread ]