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 have installed new ubuntu 10.10 in my lenovo laptop.I know gcc is used for c language but pls help me with detail info about running c in ubuntu.
thank you
not quite sure why you want to install the kernel-headers for that. You maybe meant the glibc (c standard library), which is 'libc6-dev' and contains the headers like 'stdio.h'
Thanks a lot my dears.
You are first to reply me and wise also.
I tried the code but it does not work..uname is not found.Pls tell me from basic and explaining everything.also I have Gvim text editor so is it usefull in c programming?
pls reply.
Also you can select "synaptic Package Manager" through "System" menu and put gcc etc. in the search bar, the relevant packages will automatically get selected and then then... http://www.ubuntugeek.com/synaptic-p...ntu-users.html
Quote:
Originally Posted by Piyush M
I have Gvim text editor so is it usefull in c programming?
No idea what is Gvim, but I suggest you to stick to Vim for a start, if you run into problems various people will be here to help you w.r.t Vim.
Vim is there by default.
Last edited by Aquarius_Girl; 01-20-2011 at 12:18 AM.
Hi Piyush ,
I think gcc comes preloaded with Ubuntu.
Give 'which gcc ' so that you can ensure whether gcc is on place.
If no gcc present you can install it using package manager or can download,compile&install.
#include <stdio.h>
main ()
{
printf ("BOss My Generation from C \n");
}
Suppose your filename is print.c,take a terminal
Method I:
YOu can compile with gcc print.c,generates a file a.out,
to compile that give ./a.out in the directory where a.out is present.
Method II:
compile with gcc print.c -o output
then run ./output instead of a.out in previous case.
you can give whatever name instead of output,u like
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.