MinGW Windows安装过程
2018-11-30 本文已影响6人
牧馬放飏
1.下载 MinGW,地址:www.mingw.org
image.png2.安装mingw-get-setup.exe
image.png3.运行MinGW Installer,界面如下:
image.png将Basic Setup中的Package都打上勾。
选择的方法:点击对应的Package,选择Mark for Installation
4.点击Installation->Apply Changes,然后选择Apply
image.png5.安装完之后将MinGW\bin配置到系统环境变量中
电脑(计算机)右键-> 高级系统设置->环境变量->系统变量->path(双击)
image.png
6.查看是否安装成功
$ gcc -v
Using built-in specs.
COLLECT_GCC=D:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=d:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --with-gmp=/mingw --with-mpfr --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --enable-libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)