c++에서 db를 연결하는데 아무런 이유없이 실행이 안될 때
task.json을 아래 내용으로 갈아끼우면 잘 됨
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++ 활성 파일 빌드 (MySQL 포함)",
"command": "/usr/bin/g++",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-I/usr/include/mysql",
"-L/usr/lib/x86_64-linux-gnu",
"-lmysqlclient"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "MySQL 라이브러리 포함 g++ 빌드"
}
]
}