windows 7 64bit eclipse mingw-64 配置环境
系统类型 windows 7 64bit
软件 eclipse c/c++
编译器 mingw-64bit
make mingw32-make-3.80.0-3.exe
首先配置mingw-64bit
下载地址:http://mingw-w64-dgn.googlecode.com/files/mingw-w64-bin-x86_64-20111106.7z
下载后放到D:\Program Files\mingw64
配置环境变量
C_INCLUDE_PATH
D:\Program Files\mingw64\include;D:\Program Files\mingw64\mingw\include;
LIBRARY_PATH
D:\Program Files\mingw64\lib;
CPLUS_INCLUDE_PATH
D:\Program Files\mingw64\include\c++\4.6.3;
D:\Program Files\mingw64\include\c++\4.6.3\x86_64-w64-mingw32\bits;
D:\Program Files\mingw64\include\c++\4.6.3\backward;
D:\Program Files\mingw64\mingw\include;
PATH
D:\Program Files\mingw64\bin;
完成后测试 gcc -v
这个是没有带make的 所以要自己下载
http://ncu.dl.sourceforge.net/project/mingw/MinGW/Extension/make/mingw32-make-3.80-3/mingw32-make-3.80.0-3.exe
安装后 把mingw32-make.exe 复制一份名字为make.exe
到此编译环境安装完成。
ide工具根据自己的喜好安装了, 这里可以使用eclipse 来作为开发环境
下载地址 http://www.eclipse.org/downloads/
如果eclipse 有问题 可以在
Preferences==> C/C++==>Bulid=>Environment
加入
CPLUS_INCLUDE_PATH ${CPLUS_INCLUDE_PATH}
C_INCLUDE_PATH ${C_INCLUDE_PATH}
LIBRARY_PATH ${LIBRARY_PATH}
来源:http://kingplesk.org/2011/11/windows-7-64bit-eclipse-mingw-64-%E9%85%8D%E7%BD%AE%E7%8E%AF%E5%A2%83/