【问题标题】:VS2013: fatal error C1001: An internal error has occurred in the compilerVS2013:致命错误C1001:编译器发生内部错误
【发布时间】:2020-09-16 13:12:07
【问题描述】:

代码很简单:

int main(void){
    return 0;
}

然后编译错误:

1>------ Build started: Project: Project1, Configuration: Debug Win32 ------
1>  Source.cpp
1>c:\userdata\zdck\documents\visual studio 2013\projects\project1\project1\source.cpp : fatal error C1001: An internal error has occurred in the compiler.
1>  (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\p0io.c', line 2807)
1>   To work around this problem, try simplifying or changing the program near the locations listed above.
1>  Please choose the Technical Support command on the Visual C++ 
1>   Help menu, or open the Technical Support help file for more information
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

我没有驱动F但是f:\dd\vctools\compiler\cxxfe\sl\p1\c\p0io.c出现错误??

相信我,我已经检查了几十篇标题为“C1001 blah blah ...”的帖子,但没有人适合我。

我的 VS:V2013 版本 12.0.40629.00 更新 5 我的操作系统:win 10、64 位

【问题讨论】:

  • F: 的路径可能只是编译器的编译位置——那个构建系统可能在你看到的路径上有源代码。它告诉您错误发生在编译器的哪个位置。
  • 使用相同版本的 VS 2013 构建对我来说很好。尝试使用默认设置创建一个新的控制台项目并在其中键入相同的代码。如果它构建了,那么您可能有一些奇怪的项目设置,或者 .cpp 文件本身有问题。如果它仍然没有构建,那么是时候修复/重新安装 VS。

标签: c++ visual-studio compiler-errors


【解决方案1】:

编译文件p0io.c相关的error C1001主要是在Region Settings中启用Use Unicode UTF-8 for worldwide language support造成的。您可以查看link 了解具体原因。您可以点击Time &Language -> Region-> Additional date, time, &regional settings-> Region-> Administrative->Change system locale并关闭UTF-8

enter image description here

如果错误无法修复,建议您将 VS 版本更新为 VS2019。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-26
    • 1970-01-01
    相关资源
    最近更新 更多