【发布时间】:2021-11-26 08:06:03
【问题描述】:
Program 'test.exe' failed to run: Access is deniedAt line:1 char:91
+ ... cuments\arpit\" ; if ($?) { gcc test.c -o test } ; if ($?) { .\test }
+ ~~~~~~.
At line:1 char:91
+ ... cuments\arpit\" ; if ($?) { gcc test.c -o test } ; if ($?) { .\test }
+ ~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
这是我在 VS 代码上遇到的错误 .. 我已经安装了最新版本的 Min GW 以及所需的所有扩展 .. 我无法找到解决方案,请帮助... PS我能够毫无问题地运行 C++ 程序,但不能运行 C 程序
【问题讨论】:
-
确保在编译之前保存文件。我的另一个猜测是过度热情的病毒扫描程序
-
不要调用你的程序
test -
@rioV8 调用程序测试有什么问题?
-
很多操作系统都有一个命令
test -
您使用的是哪个 MinGW 版本? MinGW-w64 提供了最新版本,例如来自winlibs.com的独立版本
标签: c++ c visual-studio-code gcc mingw