VSC 写C++ 自定义头文件 函数用不了
vscode吧
全部回复
仅看楼主
level 1
clapfor 楼主
头文件和 函数实现cpp 在同一文件夹内 编译时提示函数未定义....
2018年04月19日 04点04分 1
level 13
所以你是怎么编译的
2018年04月19日 23点04分 2
level 1
我也有这个问题。。。
2018年05月03日 15点05分 3
level 1
{ "version": "2.0.0",
"command": "g++",
"args": ["-g","*.cpp","-o","${file}.exe"], // 编译命令参数
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
我的tasks.json文件,测试可以通过。
2019年03月02日 07点03分 4
1