Welcome to the most active Linux Forum on the web.
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 09-06-2010, 09:35 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 8

Rep: Reputation: 0
C programming in ubuntu 10.04

I recently purchased a new laptop DELL Inspiron 14R (N4010) with some modifications. It has windows 7 installed on it (64 bit)
and now ubuntu too.
I read somwhere on the internet that C programming in ubuntu can be done in Gedit.
And compiler to be used is gcc.
Well i HAve Gedit on ubuntu,But what about gcc ?? is it already installed??
or i have to?? If i have to then how can i get it? i dont have an internet connection on my ubuntu(having some problem to connect) but i can connect to the internet via windows 7 installed on the same system.
Old 09-06-2010, 09:39 AM   #2
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
You might be able to install gcc from the CD repository. Insert the CD and then edit your software sources in the system->administration menu. One of the tabs should allow you to select the CD-ROM as a source and then you should be able to apt-get install gcc.


Old 09-06-2010, 09:41 AM   #3
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55

Welcome to LQ,

Configure network in Ubuntu.

You will not have gcc installed by default in Ubuntu.

Use apt-get or synaptic to install gcc once you are able to connect to network.

Last edited by vinaytp; 09-06-2010 at 09:42 AM.
Old 09-06-2010, 05:16 PM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,106

Rep: Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489Reputation: 3489

And 'sudo apt-get install g++' will install the c++ compiler and some
packages (libc6-dev, linux-libc-dev) that makes gcc usable.

Old 09-06-2010, 06:43 PM   #5
Registered: Dec 2009
Location: Bad Axe mi
Distribution: gentoo, Android, bohidI
Posts: 85

Rep: Reputation: 17
just install it by using sudo apt-get install g++ it will give you the c plus plus complier which im assuming that it will give you both though im not compleatly sure to use you c compiler you have to save it with a .c extension then i will name it first.c
cc -c first.c will make a object file then you wan to do this
cc -o first first.c which will make a excutible called first then you run it by doing a ./first i hope i could help some =]


gcc, gedit, programming

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
X programming in Ubuntu toplotna Programming 2 07-24-2009 05:47 PM
Flash programming in Ubuntu. Unr3a164 Ubuntu 2 10-28-2008 06:15 PM
PHP programming in ubuntu 8.04 umwai Linux - Newbie 2 09-16-2008 11:37 AM
Ubuntu 7.04 or fedora 8 for programming??? sweetynikku Linux - Newbie 16 05-14-2008 07:18 PM
C programming on Ubuntu kenneho Ubuntu 13 11-08-2005 04:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:56 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