即使存在,Visual Studio编译时也找不到vcvars64.bat

时间:2020-01-23 05:49:45

标签: c++ visual-studio

当尝试在Visual Studio 2019中编译C ++文件时,编译器给我这个错误:

1>------ Build started: Project: ConsoleApplication4, Configuration: Debug Win32 ------
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>vcvars64.bat
1>c1xx : fatal error C1083: Cannot open source file: 'Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat': No such file or directory
1>ConsoleApplication4.cpp
1>Generating Code...
1>Done building project "ConsoleApplication4.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

我假设发生这种情况是因为空间引起了问题?对解决此问题有帮助吗?

Visual Studio 2019,将“本地Windows调试器”用于标准C ++控制台应用程序。 vcvars64.bat存在。

0 个答案:

没有答案