c++ - 为什么我在创建 task.json 后立即在 vscode 上收到错误?
问题描述
我想在vscode上创建一个task.json,我使用了Tasks:Configure Task,选择C/C++ g++.exe,然后我得到了这个。输出是什么意思?我怎样才能改变这个?谢谢你的回答。
Error: the description can't be converted into a problem matcher:
{
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
]
}
这是我的 task.json
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe 生成活动文件",
"command": "D:\\mingw64\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "编译器: D:\\mingw64\\bin\\g++.exe"
}
]
}
解决方案
推荐阅读
- tensorflow - 将代码从 keras 转换为 tf.keras 会导致问题
- d3.js - d3中的图像图
- asp.net-web-api - 使用 NSwag 命令行向生成的 Swagger JSON 文档添加 securityDefinitions
- python - 使用 np.linalg.norm 检查 PCA 中的特征向量
- clojure - 如何使用 Clojure 检查 TLS 证书到期日期?
- batch-file - 如果我选择变量 2,批处理文件会一直关闭
- c - C-嵌套while循环中的Getchar导致无限循环
- codeigniter - 在 Mac 上使用 MAMP 的 Codeigniter - 如何删除 index.php
- jquery - jQuery帖子中的gzip
- bash - 为什么Input中的文件不会移动到带有前缀的目录Output?