task.jspn 配置 args "-lcurl"
{ "version": "2.0.0", "tasks": [ { "type": "shell", "label": "task g++", //修改此项 "command": "C:\\cygwin64\\bin\\g++.exe", "args": [ "-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe", "-lcurl" ], "options": { "cwd": "C:\\cygwin64\\bin\\" }, "problemMatcher": [ "$gcc" ], "group": "build" } ] }