Address: http://www.linuxidc.com/Linux/2010-12/30192.htm
[Date: 2010-12-01] |
Source: Linux community Author: Linux |
Platform building environment: Ubuntu 10.04, the latest Ubuntu 10.10 is believed to be the same.
1. Install Eclipse:
First, install eclipse through the built-in program installation function of ubuntu, Application> ubtuntu Software Center, search for eclipse to install.
The second method is to use the command: Application-> attachment-> terminal and then enter (you may need to enter the password in the middle ):
sudo apt-get install eclipsesudo apt-get install eclipse-pdesudo apt-get install eclipse-jdt
2. Install the Chinese Language Pack
Menu Bar: Help ------> install new software ------> enter the following address in the work with box and press Enter.
Http://download.eclipse.org/technology/babel/update-site/galileo
Select Simplified Chinese: Babel language packs in Chinese (simplified)
Then, select the Simplified Chinese security chart to prompt step-by-step installation.
3. Install the CDT (C/C ++ plug-in)
(1) In the same 2, enter the http://download.eclipse.org/releases/galileo under the frame of work
Select collaboration-> mylyn Bridge: C/C ++ development, install and restart eclipse
(2) enter the URL above and select programming development ages-> eclipse C/C ++ Development
Remember: (1) (2) the order is dependent and the installation sequence cannot be reversed.
This error is reported when you install CDT:
An error occurred while installing the items
Session Context was :( profile = platformprofile, phase = org. eclipse. equinox. internal. provisional. p2.engine. phases. install, operand = NULL --> [R] Org. eclipse. CVS 1.0.400.v201002111343, Action = org. eclipse. equinox. internal. p2.touchpoint. eclipse. actions. installbundleaction ).
The artifact file for osgi. Bundle, org. Eclipse. CVs, 1.0.400.v201002111343 was not found.
Then google found a solution.
Sudo apt-Get install eclipse-PVDF
After installing the CDT plug-in, complete ~
When using eclipse + CDT to develop C/C ++ projects, how can I enable eclipse to use the code prompt function? In fact, it is also very simple: [Linux community www.linuxidc.com]
Terminal: Enter $ gcc-V
Get the GCC version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
You can easily see the current version.
Start eclipse. Go to windows --> preferences --> C/C ++ and find environment. Add two variables:
Cplus_include_path:/usr/include/C ++/4.1.3 (My GCC Version)
C_include_path:/usr/include
Next, create a new C Project. When writing code, when you type '.', the code that can be used is automatically displayed.