Answers for "Visual studio code include path not working c++"

C++
0

Visual studio code include path not working c++

// task.json
// add this line (with your path) '"-Ipath/to/my/include/files",' to first line in "args"[]
// example:
{
  	"version": "2.0.0"
    "tasks": [
        {
          	//...
            "args": [
              	"-I${workspaceFolder}\\Headers",
                "-g",
                "${file}",
                "-o",
                "${fileDirname}\\${fileBasenameNoExtension}.exe"
            ],
          	//...
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "Task generated by Debugger."
        }
    ],
}
Posted by: Guest on August-30-2021

Code answers related to "Visual studio code include path not working c++"

Browse Popular Code Answers by Language