MinGW 安装和环境变量配置
C/C++开发环境,32位编译环境
官方网站
http://www.mingw.org/
官方下载地址:
https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/
1.双击安装
mingw-get-setup.exe
2.Basic Setup 勾选下面选项
mingw32-base-bin
mingw32-gcc-ada-bin
mingw32-gcc-fortran-bin
mingw32-gcc-g++-bin
mingw32-gcc-objc-bin
3.菜单栏选择 [Installation] → [Apply Changes],点击 [Apply] 安装
配置环境变量
变量名:MINGW_HOME
变量值:F:\sdk\MinGW
Path系统环境变量追加
%MINGW_HOME%\bin;
[运行] → [cmd]
gcc -v
安装成功,显示
gcc version 9.2.0 (MinGW.org GCC Build-2)