1.下载msys2:https://www.msys2.org/
- 打开msys2mingw64
- 更新MSYS2 和软件包数据库:执行命令
pacman -Syu
- 安装gcc/g++
pacman -S mingw-w64-x86_64-gcc
- 安装gfortran
pacman -S mingw-w64-x86_64-gcc-fortran
1.下载msys2:https://www.msys2.org/
pacman -Syu
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-gcc-fortran