First step: Download install Mingw64 (because MINGW64 can choose to use 32-bit or 64-bit compilation)
Description: Compile the C + + code compiler
: http://mingw-w64.sourceforge.net/
Step two: download the CDT:
: http://www.eclipse.org/downloads/
Description: Select the Eclipse IDE for C + + developer Windows
Step Three: Configure the CDT C + + environment (take Mingw32 as an example)
Assuming that the Mingw32 is installed in the C:/mingw32 directory, the operation is as follows:
Eclipse Menu Bar-window-preferences-Expand the left-C + + item in the pop-up Preferences window-environment in a single-machine/C + + item-
Click Add ... on the right side of the preferences window. button-Enter path in the name input box of the new Varilable window that pops up-enter C:\mingw32\bin in the Value input box-click the OK button below-
Click Add ... on the right side of the preferences window. Button-Enter Library_path in the name input box of the new Varilable window that pops up-enter C:\mingw32\lib in the Value input box-click the OK button below-
Click Add ... on the right side of the preferences window. Button-Enter C_include_path in the name input box of the new Varilable window that pops up-enter C:\mingw32\include in the Value input box-click the OK button below-
Click Add ... on the right side of the preferences window. Button-Enter Cplus_include_path in the name input box of the new Varilable window that pops up-enter C:\mingw32\include in the value input box; c:\mingw32\include\c++\4.8.2; C:\mingw32\include\c++\4.8.2\i686-w64-mingw32; C:\mingw32\include\c++\4.8.2\backward; C:\mingw32\lib\gcc\i686-w64-mingw32\4.8.2\include-click the OK button below-
Click the Apply button at the bottom right of the Preferences window-click the OK button (if you don't want to make other settings, just click the OK button)
In this way, Eclipse has been able to start and be able to find the compiler for the C + + code according to the path we set.
Restart Eclipse
Eclipse Menu Bar-file-new-c++ project (or C project)-Enter a custom project name (such as test) in the Project name input box-Cancel the window under "Show Project types and TOOLC Hains only if they is supported on the platform "item is selected by default-select Hello World C + + under the executable entry in project type on the left side of the C + + Project window Project (or Hello World ANSI C Project)-Select MinGW GCC in the Toolchains window-click the Finish button-expand a new item (such as test) that appears in the Project Explorer window-double-click the SR C *.cpp (such as Test.cpp) file-you can see that the system has automatically generated some code-Ctrl + B compiles this project-and then runs.
CDT+MINGW64 Building the Windows C + + development environment