默认只支持单文件,修改.vscode/tasks.json中的
"args": [
"-fdiagnostics-color=always",
"-g",
"${workspaceFolder}/**.c",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"[......]
vscode支持C工程的多文件编译
Leave a reply