LinuxQuestions.org
Help answer threads with 0 replies.
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 09-06-2010, 08:35 AM   #1
sainiankit
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, 08:39 AM   #2
alunduil
Member
 
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.

Regards,

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

Rep: Reputation: 55
Hi,

Welcome to LQ,

Configure network in Ubuntu.
http://www.ubuntugeek.com/ubuntu-net...mand-line.html

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 08:42 AM.
 
Old 09-06-2010, 04:16 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,941

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
*

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, 05:43 PM   #5
animeman
Member
 
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 =]
 
  


Reply

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


All times are GMT -5. The time now is 01:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration