This article is from [http://www.cnblogs.com/feisky/archive/2010/03/21/1691170.html]
1. Install eclipse
Download JRE installation from http://java.sun.com/j2se/1.5.0/download.jsp;
Download eclipse installation from http://eclipse.org. (You can download the Java version or C/C ++ version)
2. Install CDT for the downloaded Java version or only Eclipse IDE.
Install CDT in eclipse menu help, web site is http://download.eclipse.org/tools/cdt/releases/galileo
3 install mingw
So far, CDT has been installed for Eclipse, but a "CompilationProgram"To compile the program, so you need to download the gnu c, C ++ compilation program that can be used on Windows. here you need to download: mingw.
Download URL: http://www.mingw.org/download.shtml
After installation, add the bin of minwgw to the system variable and change mingw32-make.exeto make.exe.
4. Install GDB
The http://www.gnu.org/software/gdb/download downloads GDB and installs It To The mingw installation directory.
5. Set eclipse
To enable CDT to use mingw for compilation, we should go back to eclipse to set it:
Window-> preferences-> C/C ++-> New CDT Project Wizard-> makefile Project
Locate binary parser, cancel elf parser, and select PE windows parser.
In this way, the development environment is ready.