【发布时间】: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