借鉴这里 : http://blog.csdn.net/chaosllgao/archive/2009/02/04/3862472.aspx
eclipse官网下个cdt版的~
安装MinGW(安装后目录下 bin\mingw32-make.exe 文件改名字为 make.exe)
安装GDB( 和mingw安装同一目录下)
安装MSYS 1.0
设置环境变量:
C_INCLUDE_PATH=%MINGW_HOME%\include
LIBRARY_PATH=%MINGW_HOME%\lib
CPLUS_INCLUDE_PATH=%MINGW_HOME%\include\c++\3.4.5;%MINGW_HOME%\include\c++\3.4.5\mingw32;%MINGW_HOME%\include\c++\3.4.5\backward;%MINGW_HOME%\include