g++: error: /media/atul/New Volume/Linux Work/Linux C++ vs codes/*.cpp: No such file or directory code example
Example: how to run cpp using gcc vscode
{
"version": "0.1.0",
"command": "make",
"isShellCommand": true,
"tasks": [
{
"taskName": "Makefile",
"isBuildCommand": true,
"showOutput": "always",
"args": ["all"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}