Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 =]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.