30 件の質問
tasks.jsonのビルドタスクのgccへ渡す引数にincludeするヘッダ類のある場所のパスとリンクの指定をしてください。
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe アクティブなファイルのビルド",
"command": "C:\\msys64\\ucrt64\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-I","C:\\msys64\\ucrt64\\include\\ncurses",
"-l","ncurses",
"-D","NCURSES_STATIC",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe",
],
"options": {
"cwd": "C:\\msys64\\ucrt64\\bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "デバッガーによって生成されたタスク。"
},
],
"version": "2.0.0"
}