Windows 下Eclipse的C++开发环境配置
安装
----
总共需要下面的文件
1. Eclipse的CDT 插件
   http://www.eclipse.org/cdt/
2. MinGW, 主要提供编译C/C++文件的GCC、GDB 和 Make
   http://www.mingw.org/download.shtml

安装CDT插件和MinGW,然后修改Windows的环境变量(设MinGW安装在D:\MinGW)
"PATH" = "D:\MinGW\bin;%PATH%"
"LIBRARY_PATH" = "D:\MinGW\lib"
"C_INCLUDE_PATH" = "D:\MinGW\include"
"CPLUS_INCLUDE_PATH" = "D:\MinGW\include\c++\3.2.3;D:\MinGW\include\c++\3.2.3\mingw32;D:\MinGW\include\c++\3.2.3\backward;D:\MinGW\include"

Eclipse 具体使用
------------
1. 新建项目
   打开eclipse,new->project->Standard Make C++ Project
2. 配置Make命令
   在Project->Properties->C/C++ make project
   build command 的“make”改为“mingw32-make”,再按“应用” “确定”
3. 新建源代码文件和Makefile文件
4. 配置生成目标
window->show view ->make targets  add maketargets  按“ok”,再双击这个maketargets 它就自动帮你make 生成exe
5. 在Project->Properties->C/C++ Make Project->Binary Parser 把ELF Parser改成PE Windows Parser
6. 大功告成  Run->Run as->C Local Application