Do not blindly think that eclipse is only a patent for Java Development. In fact, eclipse is an integrated development tool with a huge number of functions, as long as the corresponding plug-ins are installed, he can develop almost all popular computer languages !!!
If there are some Linux distributions of ubuntu, you can refer to the documents of Mr. Wei Dongshan for specific eclipse configurations: eclipse,openocd,openjtagv3.3embedded development tutorial 4.pdf.
The following describes how to program C/C ++ in eclipse under fedora9:
1. Install JDK
In fedora,Sun JavaAvailable versions: Sun JavaOfficial version, pure open-source GNU gcj and openjdk (based onSun
Java)Sometimes some Eclipse plug-ins must be used on Sun Java.
1. Download sun-Java-JDK, my version is jdk-7u1-linux-i586.rpm, download URL: http://www.oracle.com/technetwork/java/archive-139210.html, download JDK of various types under downloadbar
Installation Method:
[Root @ localhost Home] # rpm-IVH jdk-7u1-linux-i586.rpm
2. Configure sun-JDK as the default Java
[Root @ localhost Home] #/usr/sbin/alternatives -- install/usr/bin/Java/usr/Java/latest/bin/Java 2
[Root @ localhost Home] #/usr/sbin/alternatives -- config Java
The following three options are displayed:
There are 3 programs which provide 'java '.
Selection command
-----------------------------------------------
* 1/usr/lib/JVM/jre-1.6.0-openjdk/bin/Java
2/usr/lib/JVM/jre-1.5.0-gcj/bin/Java
+ 3/usr/Java/latest/bin/Java
Enter to keep the current selection [+], or type selection Number:
Select 3 and press Enter. At this point, sun-JDK has been installed.
2. Set and install eclipse
1. Unzip the eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz
[Root @ localhost Home] # tar zxvf eclipse-cpp-helios-SR1-linux-gtk.tar.gz
2. Go to the eclipse directory, copy eclipse to the/usr/bin directory, and add executable permissions.
[Root @ localhost eclipse] # cp Eclipse/usr/bin
[Root @ localhost bin] # chmod + x eclipse
3. Add shortcuts
Create the eclipse. desktop file in the/usr/share/applications/directory. The content is as follows:
[Desktop entry]
Encoding = UTF-8
Name = eclipse Platform
Comment = Eclipse IDE
Exec = eclipse
Icon =/home/Eclipse/plugins/org. Eclipse. platform_3.6.1.v201009090800/eclipse32.png
Terminal = false
Startupnotify = true
Type = Application
Categories = application; development;
Save and exit
Note: The above icon path is your own eclipse decompression directory (depending on your individual, do not copy my directory), so that you can restart Linux, you can see the shortcut:
OK. All the work is finished here. I hope the installation process will be smooth. For writing this article, referViviweiNetizen'sArticle: Bytes. Goodbye, thank you.