visual-studio-code - 为什么在下载所有必要的扩展后 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
即使在我的文本编辑器(与代码)中下载了所有必要的扩展之后。
解决方案
该错误意味着在您的路径中找不到 c 编译器 gcc。安装它,或者如果您已经更新了搜索路径,以便您的 IDE 可以找到它。
推荐阅读
- python - 如何将平均 Timedelta 添加到 datetime.time?
- java - 错误:无法找到或加载主类 VScode 原因:java.lang.NoClassDefFoundError
- bpmn - BPMN 在 XOR 网关中将 3 个不同事件的结束事件放在哪里
- xml - 无法使用 dbxml 找到元素“根”的声明
- html - 试图在我的引导轮播图像/视频上获得深色叠加层
- python-3.x - 为什么 Pycharm 和 VS Code 给我不同的回车打印结果?
- go - 无法从 GitHub 下载 Go 包
- bash - 如何连接包含空格的字符串变量?
- mule4 - Mule 4:设计:如何在 Mule 4 中处理数据[文件/数据库记录]而不会出现“内存不足”错误?
- xamarin - 使用 plugin.media.crossmedia 在 xamarin 表单 ios 中发生 DirectoryNotFoundException