致命错误C1001:编译器中发生内部错误

ven*_*kat 15 compiler-construction 64-bit visual-c++

在x64平台上编译时,我收到以下错误:

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 ------
Run Code Online (Sandbox Code Playgroud)

如果我将设置更改为预处理器文件(是),我没有收到任何错误.

关于我的环境:将Microsoft Visual Studio 2005升级到2010

请帮忙.

Gup*_*pta 9

我在VC++中多次遇到过这个错误.执行以下步骤.他们总是帮我解决这个问题:

  1. 看看编译器错误指出的确切位置.
  2. 查找该位置使用的任何外部类型或类.
  3. 更改在步骤2中找到的那些文件的"包含路径"的顺序并重建解决方案.
  4. 我希望有帮助!!!!


ani*_*nil 8

我和VC2012有同样的错误.设置项目属性优化到禁用(/ Od)解决了问题.


Aut*_*tex 8

在Windows中本地构建时,我遇到了VS2015的这个问题.

为了解决这个问题,我删除了我的构建文件夹(如属性/常规中所示的输出目录)并重建了项目.

当构建期间发生奇怪的事情时,这似乎总是有帮助的.