1. 下载vsccode
vscode https://code.visualstudio.com/download
vscode里的C/C++ 扩展 https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
下载Mingw-w64通过MSYS2 https://www.msys2.org/
Install the Mingw-w64 toolchain (pacman -S --needed base-devel mingw-w64-x86_64-toolchain
). Run the pacman
command in a MSYS2 terminal. Accept the default to install all the members in the toolchain
group.
检查MinGW是不是下好
gcc --version
g++ --version
gdb --version
参考 https://code.visualstudio.com/docs/cpp/config-mingw#_prerequisites