首页 > 解决方案 > 为什么在下载所有必要的扩展后 vs code 不工作?

问题描述

我的文本编辑器(vs 代码)不工作,在编写了一个简单的 c 程序后,它会抛出类似的问题

cc : 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:61
+ ...  "c:\Users\HP\HTML .one\.vscode\css\hello.c\" ; if ($?) { gcc hello.c ...
+                                                               ~~~

+ CategoryInfo          : ObjectNotFound: (gcc:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

即使在我的文本编辑器(与代码)中下载了所有必要的扩展之后。

标签: visual-studio-code

解决方案


该错误意味着在您的路径中找不到 c 编译器 gcc。安装它,或者如果您已经更新了搜索路径,以便您的 IDE 可以找到它。


推荐阅读