In the development of C + + under Eclipse, there are CDT plug-ins that can be used and, of course, compilers like GCC and g++ to work properly.
The use of the CDT plugin is not introduced here, this can be found on a random search
First download the Mingw-w64 installer from here (Mingw-w64 is the replacement of the previous 32-bit version MinGW, now can compile 32, 64-bit programs)
After downloading, click Step by step
Notice whether the selection is 64-bit or 32-bit? Windows?
Download the following directory structure after installation
Add the Bin directory under this directory to the system environment,
You can test to see if it compiles properly.
Open Eclipse, create a new C + + project, you can see all the compilation environment, choose MinGW gcc, and then OK.
A Hello world first.
Ctrl+b compile the project, run can see the output description is correctly configured
Eclipse + CDT + mingw-w64 build C + + development environment