Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp vscode multipe compilation

// This is tasks.json of vscode for linux distros,
//	to compile multiple cpp files.

{
"version": "2.0.0",
"tasks": [
    {
        "type": "shell",
        "label": "C/C++: g++ build active file",
        "command": "/usr/bin/g++",
        "args": [
            "-g",
            "${fileDirname}/*.cpp",
            "-o",
            "${fileDirname}/${fileBasenameNoExtension}"
        ],
        "options": {
            "cwd": "/usr/bin"
        },
        "problemMatcher": [
            "$gcc"
        ],
        "group": {
            "kind": "build",
            "isDefault": true
        }
    }
]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cpp #vscode #multipe #compilation
ADD COMMENT
Topic
Name
5+6 =