c++ - /usr/bin/bash: g++: 找不到命令
问题描述
刚刚在 VS Code 中启动 C++,我用 MinGW、编译器、扩展、调试等设置了 uo C++。我陷入了一个我找不到解决方案的问题。在我完成 task.json 之后:
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "g++",
"args": [
"-g", "learn.cpp"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
在我输入 Ctrl+Shift+B 以便它可以在终端中显示后,它显示:
/usr/bin/bash: g++: command not found
The terminal process terminated with exit code: 127
如果你们帮我解决这个问题,我将不胜感激!
感谢你!!
解决方案
推荐阅读
- r - R中子分组或子嵌套后的索引
- twisted - 带有普通 http2 (h2c) 的扭曲网络服务器
- php - Google App Engine - PHP 会话数据未跨子域/服务保留
- css - 带有占位符的 aspx 页文本框。如何格式化占位符的 Css?
- arrays - 多次遍历文件,每次找到一个正则表达式并返回一行(perl)
- python - 如何使用字典列表作为字典列表中的值创建字典
- php - 使用日期时间比较两个自定义日期字段中的月份
- python - 在 Python 中,我如何从文件中读取值并将它们放入 RawArray?
- html - 单击按钮时如何隐藏文本
- hive - Hive - where 子句中的多个子查询失败