c++ - 错误 C1083:如何修复损坏的 Visual Studio 编译器?
问题描述
我的 Visual Studio 总是无法编译任何 C++ 程序。我没有篡改或修改编译器。
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
}
给出输出:
1>Program
1>c1xx : fatal error C1083: Cannot open source file: 'C:\Program': No such file or directory
1>Files
1>c1xx : fatal error C1083: Cannot open source file: 'Files': No such file or directory
1>Microsoft
1>c1xx : fatal error C1083: Cannot open source file: '(x86)\Microsoft': No such file or directory
1>Visual
1>c1xx : fatal error C1083: Cannot open source file: 'Visual': No such file or directory
1>x64
1>c1xx : fatal error C1083: Cannot open source file: 'Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64': No such file or directory
1>test.cpp
1>Generating Code...
1>Done building project "test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
我认为其中一条路径缺少双引号,但我不知道在哪里解决这个问题。
解决方案
推荐阅读
- java - 等到对话框关闭以将项目添加到 recyclerview
- javascript - 如何生孩子?
- javascript - 这种加载外部 csv 数据的方法有什么问题?
- javascript - 如何在 Vue JS 中调用 p5.Vector.fromAngle()?
- ios - 如何从静态 init 方法中获取初始化的 SELF
- github-actions - 在 GitHub Actions 中,我可以返回一个值以供以后用作条件吗?
- r - 访问随机森林 sparkR 中的概率对象列
- python - 当猴子修补其构造函数时,pandas DataFrame 处于“边缘”状态
- python - 移动绘图散景工具
- apache-nifi - Nifi 导入大数据文件