【发布时间】:2022-11-02 17:52:41
【问题描述】:
在 vscode 中运行代码后的反馈;
gcc : The term 'gcc' is not recognized as the name
of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a
path was included, verify that the path is correct
and try again.
At line:1 char:40
我输入的代码;
#include<stdio.h>
int main() {
printf("Hello World")
}
【问题讨论】:
-
什么操作系统?你安装了什么版本的gcc?
-
同样,从我们收到的关于 Visual Studio Code 的大量初学者问题来看,它显然完全不适合初学者。获得一个更好的 IDE,它预装了编译器、链接器和调试器。
-
“运行代码后”:不,你没有运行任何东西。 gcc 是 vscode 尝试查找但由于工具配置不完整而失败的编译器的名称。
-
错误消息是输入未知命令时 Windows PowerShell 打印的消息。很可能是Windows。但这仍然应该在问题中提及。
标签: c visual-studio-code