Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error C1001: An internal error has occurred in the compiler

While compiling on x64 plattform I am getting following error:

c:\codavs05\hpsw-sc\ovpacc\tools\codaaccesstest\coda_access.cpp(1572): fatal error C1001: An internal error has occurred in the compiler.

(compiler file 'f:\dd\vctools\compiler\utc\src\p2\sizeopt.c', line 55)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information

------ Build started: Project: asyncexample, Configuration: Release Win32 ------

If I change settings to preprocessor file (Yes) i am not getting any error.

About my environment: Upgrading Microsoft Visual Studio 2005 to 2010

Please help.

like image 452
venkat Avatar asked Aug 16 '11 10:08

venkat


4 Answers

I have had this problem with VS2015 while building locally in Windows.

In order to solve it, I deleted my build folder (Output Directory as seen in Properties/General) and rebuilt the project.

This always seems to help when strange things happen during the build.

like image 101
Autex Avatar answered Sep 18 '22 09:09

Autex


I’ve encountered this error many times in VC++. Do the following steps. They’ve sometimes helped me with this issue:

  1. Take a look at the exact location, pointed out by compiler error.
  2. Find any external types or classes used there at that location.
  3. Change the order of “include path” of those files found in step 2 and rebuild the solution.
  4. I hope that help !!!!
like image 37
Gupta Avatar answered Sep 18 '22 09:09

Gupta


I am getting same error with VC2012. Setting up the project properties Optimization to Disabled (/Od) resolved the issue.

like image 27
anil Avatar answered Sep 20 '22 09:09

anil


In my solution, i've removed output dll file of the project, and I've made project rebuild.

like image 42
PhD Paweł Iwaneczko Avatar answered Sep 19 '22 09:09

PhD Paweł Iwaneczko