/ usr / bin / bash:g ++:找不到命令

时间:2019-11-12 22:17:29

标签: c++ visual-studio-code terminal g++ mingw

只需在VS Code中启动C ++,然后使用MinGW,Complier,扩展,调试等设置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

如果您能帮助我解决这个问题,我将不胜感激!

谢谢你!

0 个答案:

没有答案
相关问题