JoeM Working Environment:
1. Windowsxp/pentium4 2.6GHz Hyper thread/256m
2. Eclipse SDK 3.1/mingw5.0
A. Necessary installation package
1. because Eclipse was originally designed for Java development, it was developed in Java, so the Java runtime enviroment (JRE) was first downloaded.
2. Download the Eclipse SDK, which automatically detects your operating system and determines the specific SDK.
3. for the Microsoft Windows platform, you can download MinGW (GNU C + +) or Cygwin Toolkit; for Linux, UNIX,BSD platforms are guaranteed to be available as GNU C + + Toolkit; You may also need to download the GNU Debugger separately.
4. Download the C + + Development Toolkit (CDT) (this assumes the CDT3.1 for Eclipse SDK 3.1.X platform).
B. Installation Process
1. Install JRE.
2. Install the Eclipse SDK.
3. Install MinGW (for MS Windows Platform).
4. install CDT.
c. configuration Process
1. Configure MinGW
1.1 assumes that the MinGW installation directory is: C:/MINGW
Set PATH environment variable: c:/mingw/bin;
1.2 Test MinGW Environment
First edit the following test code named Main.cpp with a text editor:
2. Configure the Eclipse IDE for MinGW
2.1 Choose windows=>preferences ... menu, select c/c++=>make=>new make Project left tree node in Preferences pop-up window, make Builder page Check setup build command on the right: Mingw32-make. (If you use managed make C + + project The build command must be Make.exe)
2.2 to run make target in a Windows environment, you must Binary the project=>properties=>c++ in Project Parser set to PE Windows Parser.
2.3 Configuration Debugging Environment: Click to select run=>debug ... menu, select the corresponding C + + local applicationin the Debug window that pops up.
Select Debugger tab on the right and set Debugger:gdb debugger and GDB debugger:gdb
2.4 Test Eclipse Environment
Use the File=>new=>Standard make C + + project| Create a new project Then import main.cpp into the project; add a makefile as follows:
all:g++ main.cpp-g-O Hello
Use build made target to complete the generation process, if the above testing process is not problematic, should have hello.exe in the project directory, and also test the CDT debugging environment.
PostScript
I was going to write a few articles about using the Eclipse IDE to develop C + + applications, but I found myself gradually losing patience with Eclipse's performance and stability, perhaps because Eclipse's goals are more functional. In fact, Eclipse's design concept is very good, but its design concept for the core of the implementation of the technology is even a luxury. The maturing of net technology ( especially Mono) makes me feel another hope. Freedom always comes at a price.