TransWikia.com

VScode on Ubuntu 18.04 LTS (cpp: error trying to exec 'cc1plus': execvp: No such file or directory)

Ask Ubuntu Asked by Vivek Sharma on October 23, 2020

In kernel of vscode

cpp: error trying to exec ‘cc1plus’: execvp: No such file or directory The terminal process "/bin/bash ‘-c’,
‘/home/viveksharmavs/anaconda3/bin/cpp -g
‘/home/viveksharmavs/Documents/c++ codes/viveksharma.cpp’ -o
‘/home/viveksharmavs/Documents/c++ codes/viveksharma”" failed to
launch (exit code: 1).

in 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
            }
    {

How can I reset settings if needed, or how can I cure this problem? I want to do some C++ coding stuff, but I’m getting these errors.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP