Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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

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, 11:12 AM   #2
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, 11:44 AM   #3
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
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:
gcc -o my_program my_program.c
4. you need to make the program exacutable:
chmod +x my_program
5. run the program:
have fun
Old 01-29-2008, 12:58 PM   #4
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):

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, 01:21 PM   #5
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
If you want an IDE that isn't bloated try:

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

Original Poster
Rep: Reputation: 0
Download of gcc Package

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,

RamaKrishna K.V
Old 02-04-2008, 04:01 AM   #7
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, 12:30 PM   #8
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.

Old 02-04-2008, 12:36 PM   #9
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)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:18 PM
POPTOP server for win32 clients and 2 linux boxes not working with linux mago Linux - Networking 0 10-16-2006 04:13 PM
F1 - F10 not working when F13 - F20 working in Linux haivinay Linux - General 0 09-20-2004 08:31 AM
Link/Applet not working in all Linux browsers, but working in IE MasterPatricko Linux - Software 6 09-04-2004 04:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 PM.

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