Install Eclipse:
The first is to install Eclipse through the program installation features of Ubuntu, Application->ubtuntu Software Center, search Eclipse installation.
The second method is to use the command: application-and attachment-, terminal and enter (you may need to enter a password in the middle):
sudo apt-get install eclipse
sudo apt-get install Eclipse-pde
sudo apt-get install ECLIPSE-JDT
The third kind is to enter the official website to download
Install the Chinese Language pack
Menu bar: Help------>install New software------> enter the following address in the work with box.
Http://download.eclipse.org/technology/babel/update-site/galileo
Select English: Babel Language Packs in Chinese (Simplified)
Then choose the Simplified Chinese Antu prompt step-by-step installation
Installing the CDT (c + + plugin)
(1) Enter Http://download.eclipse.org/releases/galileo in the same 2 as the work with box
Select Collaboration->mylyn bridge:c/c++ Development, install, restart Eclipse
(2) After entering the URL above, select programming Languages->eclipse/C + + development
Remember: (1) (2) The order has dependencies, the installation order cannot be reversed.
This error may be reported when the CDT is installed:
An error occurred while installing the items
Session context was: (Profile=platformprofile, phase= Org.eclipse.equinox.internal.provisional.p2.engine.phases.Install .........
Google a bit later, found the solution.
sudo apt-get install Eclipse-pde
In the installation of the CDT plugin, complete ~
How can you let Eclipse play the function of automatic code hinting when you develop C + + projects with ECLIPSE+CDT? In fact, it is very simple:
Open Terminal: Enter: $ gcc-version
Get similar: GCC version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16UBUNTU2)
It's easy to see the version you're currently using.
Start Eclipse. Enter: windows-->preferences-->c/c++ find environment. Add two variables:
Cplus_include_path:/usr/include/c++/4.8.4 (my gcc version)
C_include_path:/usr/include
Next, create a new C project. When writing code, when typing '. ' will automatically eject the alternate code when it is available.
Eclipse installation and configuration in Ubuntu