我是安装了vs,所以默认compilerPath的vs的cl.exe,
"compilerPath": "d:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe",
修改为
"compilerPath": "C:\\mingw64\\bin\\g++.exe",
当然
这个也对应修改一下
"intelliSenseMode": "gcc-x64"
finished!