Ubuntu 18.04 LTS 上的 VScode(cpp:尝试执行‘cc1plus’时出错:execvp:没有此文件或目录)

Ubuntu 18.04 LTS 上的 VScode(cpp:尝试执行‘cc1plus’时出错:execvp:没有此文件或目录)

在 vscode 的内核中

cpp:尝试执行“cc1plus”时出错:execvp:没有此文件或目录终端进程“/bin/bash‘-c’,‘/home/viveksharmavs/anaconda3/bin/cpp -g‘/home/viveksharmavs/Documents/c++ codes/viveksharma.cpp’-o‘/home/viveksharmavs/Documents/c++ codes/viveksharma’’”无法启动(退出代码:1)。

launch.json

    {
        "name": "g++ - Build and debug active file",
        "type": "cppdbg",
        "request": "launch",
        "program": "/home/viveksharmavs/Documents/c++ codes/a.out",
        "processId": "${workspacefolder}",
        "MIMode": "gdb",
        "setupCommands": [
            {
                "description": "Enable pretty-printing for gdb",
                "text": "-enable-pretty-printing",
                "ignoreFailures": true
            }
    {

如果需要,我该如何重置设置,或者我该如何解决此问题?我想做一些 C++ 编码工作,但遇到了这些错误。

相关内容