如果编译没有报错,这个就是自己的链出了问题
{
"tasks": [
{
"type": "shell",
"label": "C/C++: g++.exe build active file",
"command": "C:\mingw64\bin\g++.exe",
"args": [
"-g",
"${file}",
"${fileDirname}\printttt.cpp",//下面这些都是自己写的cpp文件,把他们放到和main.cpp同级别目录下,然后加上下面的5行就可以使用自己的cpp .h文件了
"${fileDirname}\tinystr.cpp",//目录级别是【项目名称[src[main.cpp,print.cpp]][include[print.h]]】,需要自己再修改一下这里就好了
"${fileDirname}\tinyxml.cpp",
"${fileDirname}\tinyxmlerror.cpp",
"${fileDirname}\tinyxmlparser.cpp",
"-o",
"${fileDirname}\${fileBasenameNoExtension}.exe",
],
"options": {
"cwd": "C:\mingw64\bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}