【发布时间】:2022-11-04 17:22:52
【问题描述】:
我一直在搜索整个互联网,但找不到使用 clang 编译器构建我的 c++ 项目的解决方案。我对所有这些东西都很陌生,很抱歉造成误解。
我有默认的tasks.json 文件:
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "clang++ build active file",
"command": "C:/Program Files/LLVM/bin/clang++",
"args": [
"-std=c++17",
"-stdlib=libc++",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
我可以编译,这就是我编译的,3个文件:
我需要以某种方式创建可执行文件... 感谢帮助。
【问题讨论】:
标签: c++ visual-studio-code compilation clang++