Windows系统安装mingw

⌚Time: 2023-04-09 19:51:25

👨‍💻Author: Jack Ge

MinGW: A native Windows port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All of MinGW's software will execute on the 64bit Windows platforms.

mingw下载地址:https://sourceforge.net/projects/mingw/

安装

选择安装目录,点continue

正在下载安装管理器

打开安装管理器,选择mingw32-base(编译c语言程序)和mingw32-gcc-g++(编译c++语言)。msys是类unix环境终端,没有必要选择,但是我选上了

点击installation,apply changes,进行安装

点击apply

开始下载包

安装完成

系统,高级系统设置,环境变量。将mingw安装目录的bin文件夹添加到系统环境变量path中。

打开cmd,测试mingw的安装

如果安装msys,则在mingw安装目录下有msys目录,msys.bat启动msys1.0