LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2008, 09:59 AM   #1
kvrk_karim18
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Rep: Reputation: 0
Working with C and C++ on Linux OS.


Sir,
As i am a technical student i would like to practice C and C++ on Linux desktop. I had loaded Mandriva free 2008.How and where can i get the download? Thank you sir
Rama Krishna K.V
 
Old 01-29-2008, 10:12 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
You need a compiler and some editor to program.

Install gcc package and any editor you want to use. Check some sites for more information regarding the subject as it's quite large.
 
Old 01-29-2008, 10:44 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
If you want to write a program in C, you need to:

1. Use an editor of your preference, and create a .c file (.e.g. my_program.c )
2. Write your program and save the file.
3. being in the directory where your .c program is type:
Quote:
gcc -o my_program my_program.c
4. you need to make the program exacutable:
Quote:
chmod +x my_program
5. run the program:
Quote:
./my_program
have fun
 
Old 01-29-2008, 11:58 AM   #4
teddyt
Member
 
Registered: Dec 2007
Location: US
Distribution: Slackware 12.1
Posts: 119

Rep: Reputation: 15
A few suggestions for software to help you (by for instance providing syntax highlighting):

Kate
Anjuta
Eclipse with the appropriate plugin

One could easily write a book on this topic, but these are the tools I use most often.
 
Old 01-29-2008, 12:21 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
If you want an IDE that isn't bloated try:
http://geany.uvena.de/

Of course you'll need gcc installed.
 
Old 02-04-2008, 01:24 AM   #6
kvrk_karim18
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Download of gcc Package

Sir,
As you have suggested me to download gcc package and the link provided by you for working with C++ programs. i could not able to download because i was shuttling in between the links. Please provide me few other links and guide me how to install in the linux OS.
Thanking you sir,

Regards
RamaKrishna K.V
 
Old 02-04-2008, 03:01 AM   #7
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
What distribution are you using
You should put that in your lq profile
 
Old 02-04-2008, 11:30 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I merged your two threads on the same subject and
suggest that you stick with one thread in the future.

Spawning several threads on the same (or closely related)
topic is counter-productive and strongly discouraged here.


Cheers,
Tink
 
Old 02-04-2008, 11:36 AM   #9
Fadoksi
Member
 
Registered: Apr 2006
Location: Finland
Distribution: Ubuntu, Gentoo, Debian
Posts: 88

Rep: Reputation: 15
KDevelop is also a good IDE, especially if you are using KDE (I can't remember what Mandriva uses by default)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot system of Linux and Linux networking not working???? helptonewbie Linux - General 6 04-19-2007 05:18 PM
POPTOP server for win32 clients and 2 linux boxes not working with linux mago Linux - Networking 0 10-16-2006 03:13 PM
F1 - F10 not working when F13 - F20 working in Linux haivinay Linux - General 0 09-20-2004 07:31 AM
Link/Applet not working in all Linux browsers, but working in IE MasterPatricko Linux - Software 6 09-04-2004 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration