Redhat9Linux environment installation and Chinese eclipse

Source: Internet
Author: User
1. all the resources required in this article can be downloaded to: http://download.eclipse.org/eclipse/downloads/index.php: eclipse main program eclipse-SDK-3.1.2-linux-gtk.tar.gz on the website of protected sed. 1. all the resources required in this article can be downloaded on the website (http://download.eclipse.org/eclipse/downloads/index.php) of protected sed:
Eclipse-SDK-3.1.2-linux-gtk.tar.gz: eclipse main program
NLpack1-eclipse-SDK-3.1.1a-gtk.zip: eclipse Chinese package (although it is 3.1.1, but basically can be Chinese 3.1.2)
Org.eclipse.cdt-3.0.2-linux.x86.tar.gz: eclipse c/c ++ plug-ins
2. Unzip the main eclipse program in your own directory first:
$ Cp eclipse-SDK-3.1.2-linux-gtk.tar.gz/home/wooin/eclipse
$ Cd/home/wooin/eclipse
$ Tar-xzvf eclipse-SDK-3.1.2-linux-gtk.tar.gz
3. Chinese eclipse:
Create a new directory named language and links in the eclipse directory.
$ Cd eclipse
$ Mkdir language links
Decompress the downloaded language package nlpack1-eclipse-sdk-3.1.1a-gtk.zip to the language directory.
Create a new file named language.link.txt in the linksdirectory and write the following information into the file:
Path =/home/wooin/eclipse/language
When eclipse is started, it is already in Chinese, and the Chinese version is incomplete because the version is not uniform, but it is basically usable,
When the new version of the Language Pack comes out, make it better in Chinese
4. Install c/c ++ IDE:
Decompress the org.eclipse.cdt-3.0.2-linux.x86.tar.gz file to get the features and plugins folders.
To the same directory in the eclipse folder.
5. Restart eclipse and create a C Project:
A. File-> New-> Standard Make C Project
B. Project name: HelloWorld. Then "complete"
C. Right-click "New-> New Source File" on the HelloWorld Project name in the Project view on the left to create a helloworld. c File.
File Content:
# Include
Int main (){
Printf ("Hello World! \ N ");
}
E. Right-click "New-> File" on the HelloWorld Project name in the Project view on the left to create a Makefile File.
File Content:
Hello:
Gcc helloworld. c-o helloworld
F. In the Make Targets view, right-click the project name and select "Add Make Target"
Target Name: make
Make Target: hello
Then click "Create"
G. Double-click the Make option in the make Targets view to compile the helloworld. c file.
The helloworld executable file has been generated in the project folder.
H. However, you cannot run or debug the program from eclipse at this time. You need to set some parameters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.