[ILUG-Cochin.org] how to run a cpp or c program in ubuntu

AZAD NIKARTHIL azadnikarthil at yahoo.co.in
Sat Jan 17 22:41:35 IST 2009



hai 
no input is file this is message it is shown

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 <azadnikarthil at yahoo.co.in> 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.
_______________________________________________


Mailinglist mailing list

Mailinglist at ilug-cochin.org

http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org




_______________________________________________
Mailinglist mailing list
Mailinglist at ilug-cochin.org
http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org



      From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ilug-cochin.org/pipermail/mailinglist_ilug-cochin.org/attachments/20090117/bbb271d9/attachment.html>


More information about the Mailinglist mailing list