Error C1001 "Internal Compiler Error"

4.6k views Asked by At

I am trying to run a VC++ 6 project in VS2010. In that am getting:

Internal Compiler error.. error C1001

Can anyone please tell me how to rectify that error? I Googled for this and I found reinstalling the Service Pack will solve this issue. But it didn't.

2

There are 2 answers

0
icabod On

Microsoft Developer Network suggests that you remove some optimizations in your code: Fatal Error C1001. Once you've worked out which optimization is causing the issue, you can use a #pragma to disable that optimization in just that area:

// Disable the optimization
#pragma optimize( "", off )
...
// Re-enable any previous optimization
#pragma optimize( "", on )

Hope that helps to solve your problem.

0
Aaron Fischer On

In order for me to resolve this issue while targeting DotNet 3.5 I had to apply the visual studio 2008 sp1 as well as a seemingly unrelated hotfix http://support.microsoft.com/kb/976656 that cleared it up. Keep in mind that the IDE is Visual studio but the msbuild is from your installed Visual studio 2008