Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Linux Programming (1) C and C + + development environment structures

1:linux installation of the software.
There are two ways to install the Linux source code translation : their installation and use RPM to install. RPM包 provide a general software download. Because I am lazy, and are based on installing RPM installation has never translated. RPM installation method is very simple, in order to import trip :
Rpm or rpm -i packname.rpm -ivh packname.rpm can.
Unloading is also very simple :
Rpm-e packname
If sometimes we do not know what the names unloading installation packages, for instance, I would like to unload Fedora core2 carrying input method, but does not know the name of religious input, input :
Rpm -qa *input
Then the system will automatically search RPM包 already installed, and a corresponding display packname.

2:IDE choice.
I chose eclipse+CDT, the eclipse is a revenue item in the presentation and can see http://www.eclipse.org downloaded CDT platform is the C and C + + plugin procedures CDT can download here. I downloaded the eclipse 3.0+CDT2.0.
Attention to the selection of the corresponding versions to download are generally choose Linux x86 version. CDT stages and decompression can be used directly, not installed. Here in Linux with a little note : I must unzip to decompression, etc., is very simple :
Unzip packname.zip
I was in the beginning, when downloaded using Windows WINRAR codecs, LINUX articulated in the past FAT32 district complex system, there is a problem, WINRAR suppressing a bundle of documents released full-conversion of capital into lowercase and Linux capitalization is sensitive, result has been unable to start stages, or in the final stages of the newsgroup to find a solution. CDT packet compression codecs after two catalogs, these two documents were released under the complicated system of the two stages catalog everything under the same name list.

3:JDK installation.
CDT and installed in stages, but the stages which could not, because it is developed using Java, it is necessary to install JDK, in SUN公司 JDK download on the website, downloaded at least 142 versions of the proposal. Please choose x86 RPM包 download and then install after the installation /etc/profile document editing, the final addition
Export JAVA_HOME=/usr/java/j2sdk1.4.2_04
Export PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=. : /usr/java/j2sdk1.4.2_04/lib/tools.jar:$CLASSPATH
Export CLASSPATH
Attention around here = no ballots, according /usr/java/j2sdk1.4.2_04 this path to determine your own installation path. Find themselves under the /usr/java about. Then start stages, it can build up in stages Lane C and C + + projects.

4 : Compiler
These stages do not have compiler, but can be set up, but I do not have installed, I only use him to write code. I compiler and debugger are in the process under way in order firms to do with the GCC and GDB. How to establish a specific compiler in these stages here, I would not, since the Internet is more, the GOOGLE about everything. Finally, easy to use, you can use the mouse Right Key desktop, choose "create starter" and named the starter for the eclipse, import orders /root/eclipse/./eclipse acts, and then select a chart, OK, it created a similar shortcut to Windows. Double-click directly after the campaign. End, a simple development environment basically built up. We will be able to immediately enter the Linux programming the rest of the world.

The author Blog:http://blog.csdn.net/elssann/

Linux Programming (1) C and C + + development environment structures

Dong good support, thanks.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com