生成解决方案时出现致命的内部编译器错误C1001 VS2019

时间:2019-11-04 11:49:15

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

我刚安装了Visual Studio 2019,并尝试编写C ++程序。 我为项目模板选择了“ Windows桌面向导”。选择“控制台应用程序(.exe)”,并取消选择所有其他选项。 尝试构建解决方案时,发生致命错误:

1>------ Rebuild All started: Project: HelloWorld, Configuration: Debug Win32 ------
1>HelloWorld.cpp
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001: An internal error has occurred in the compiler.
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001: (compiler file 'msc1.cpp', line 1529)
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001:  To work around this problem, try simplifying or changing the program near the locations listed above.
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001: Please choose the Technical Support command on the Visual C++
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001:  Help menu, or open the Technical Support help file for more information
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001: INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\CL.exe'
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001:     Please choose the Technical Support command on the Visual C++
1>G:\My Drive\coding\VS\source\repos\HelloWorld\HelloWorld.cpp(10,1): fatal error C1001:     Help menu, or open the Technical Support help file for more information
1>Done building project "HelloWorld.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

我已经去过Microsoft和其他网站,但是这些解决方案均无效。 这是我尝试过的:

  1. 添加库:#include <string>
  2. 目标解决方案
  3. 安装LLVM2019(https://marketplace.visualstudio.com/items?itemName=MarekAniola.mangh-llvm2019
  4. 重新安装Windows 10
  5. 安装MINGW

我很确定这与我的源代码无关,但我要发布它:

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello, world!";
    return 0;
}

如您所见,错误指向程序的结尾,因此与我的代码无关。

0 个答案:

没有答案