使用MinGW安装gcc/g++,make,debug等
下载MinGW
- 前往官网下载
- 我下载好的安装包mingw-get-setup.zip
开始安装
保持默认
continue
勾选mingw32-base
Apply:开始安装
报错的解决办法
我的是gdb和make直接failed
下载这两个文件:
make-3.82-5-mingw32-bin.zip
gdb-7.6.1-1-mingw32-bin.zip
本文只提供make的解决方案
- 解包第一个make-3.82-5-mingw32-bin.zip,将mingw32-make.exe重命名为make.exe,将其拷贝至MinGW安装目录的bin文件夹中
- 添加环境变量:你的MinGW的bin文件夹,如:
C:\MinGW\bin
,添加方法自行百度 - 打开cmd,输入
make --version
,如果输出如下:
GNU Make 3.82
Built for i386-pc-mingw32
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
那么make就可以使用啦!
附上MinGW单独包的下载地址:https://sourceforge.net/projects/mingw/files/MinGW/Extension/