First install the build-essential package by typing the following at a
terminal prompt ( https://help.ubuntu.com/community/UsingTheTerminal ) :
sudo apt-get install build-essential

You need to do the above only once.

Save your C/CPP program as a simple text file with either a .c or .cpp
extention (say filename.c). I'd recommend the vi editor for this, though you
may use any text editor of your choice.

To compile, start a terminal window and type the following at the prompt:

gcc filename.c -o a.out

The output file will be created in the same directory, so type
./a.out
to run the program.

Hope this helps.

On Sat, Jan 17, 2009 at 1:02 AM, AZAD NIKARTHIL
<[email protected]>wrote:

>
>
> plz help me...
> give me the step to compile and run the programm written in c or cpp  in
> ubuntu os
>
> ------------------------------
> Add more friends to your messenger and enjoy! Invite them 
> now.<http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/>
> _______________________________________________
> Mailinglist mailing list
> [email protected]
> http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
>
>
_______________________________________________
Mailinglist mailing list
[email protected]
http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org

Reply via email to