" Preface "
This semester, C + + teacher asked to install an eclipse for C + +, tossing a few hours to check all kinds of information finally finished, share the following personal installation experience.
" Install Eclipse"
Eclipse Installation Address: Http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/oxygen2
Select Windows 64-bit installation on the right side of the page
After decompression, it may be found that the Eclipse.exeis not opened, prompted to install the JDK or JRE, because Eclipse itself is written in the Java language, we need to install the Java environment
"JDK installation "
Install Java and configure the environment process:
Jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html
After opening the Web page, such as Operation installation (note the JDK installation location, placed in their own convenient place, storage directory behind useful)
After installing the JDK, configure the environment as follows:
Right click on this computer, properties, advanced system settings, environment variables, new in system variables, variable name:java_home; The variable value is the actual installation path (for example, my: E:\Java\jdk-9.0.4)
In the system variable we can find a path variable, edit it, create a new two variables, respectively,
Such a format (E:\Java\jre-9.0.4\bin;E:\Java\jdk-9.0.4\bin, the reader according to their own installation location modified)
Above we configured to complete the Java environment
" Compiler installation "
At this point we can open the eclipse.exe , but we will soon find that we cannot compile the program, because Eclipse does not have its own compiler, we need to be next.
: HTTP://SOURCEFORGE.NET/PROJECTS/MINGW/?SOURCE=DLP
A box will pop up when you install it:
Check all Basic Setup , then left upper installation->apply changes
When the installation is finished, the tick will turn green and it will be installed properly.
To configure the MINGW environment variable:
Edit in previous system variable: variable value of PATH variable add C:\MinGW\bin; (mingw default installation location, whichever is its own installation location)
At the same time pay attention to C:\MinGW\bin in the Mingw32-make.exe renamed to become Make.exe
So you can, in Eclipse, create a new C + + project Remember Toolchains choose MinGW GCC .
Eclipse for C + + installation Experience