Eclipse development environment-general Linux technology-Linux programming and kernel information, the following is a detailed description. Install python in Linux (debian/ubuntu is used as an example and requires administrator permissions ):
Install the compiler and Debugger: apt-get install build-essential Tia
Install JDK or JRE: apt-get install sun-java5 -*
Install Eclipse and CDT: apt-get install eclipse-cdt
Fedora Core 4? :
Download Eclipse IDE for C/C ++ Developers (http://www.eclipse.org/downloads/), decompress
Run eclipse (you may need to use the parameter-vm to specify the virtual machine, such as./eclipse-vm/usr/java/jre1.6.0 _ 02/bin/java)
Project Creation: in linux
Run eclipse
Select File> New> Project
In the displayed dialog box, select Managed Make C ++ Project, and then click
Enter the Project Name in the Project Name, and then Finish
In the C/C ++ Project subwindow, right-click the Project you just created and choose New => Source File
In the displayed dialog box, write the file name (with. cc or. cpp as the extension)
Write program content in the main window in the middle
Automatically compile the program after it is saved
First run:
After compilation is successful, select the menu Run => Run...
In the displayed dialog box, select C/C ++ Local Application on the left and click New in the lower left corner.
Click Search Project... on the right. In the displayed dialog box, select the executable file to run and click OK.
Select a Debugger: GDB Debugger on the Debugger page.
Click the Run button below to Run the task.
Run again:
By Ctrl-F11
Debugging:
Press F11 to enter the debugging page when an error occurs.
On the debug page, press F5 as Step Into, F6 as Step Over, And f8.
Press Ctrl-Shift-B or double-click at the beginning of a line to set the breakpoint.
View the function call stack in the Debug subwindow
View the value of the current variable in the Variables subwindow
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