Tuesday, July 14, 2009

I have a ubuntu 7.04 live cd ... can someone please tell me how i can activate the c compiler in ubuntu..?

( i am currently unable to implement c prog in ubuntu .. want to mainly know how to activate the compiler)

I have a ubuntu 7.04 live cd ... can someone please tell me how i can activate the c compiler in ubuntu..?
Hi!





The main compiler programs are not installed by default when you first install Ubuntu. If you just install gcc, you will have the compiler, but you might miss some libraries which might be helpful as you keep on developing. To install all these libraries and some things that might be helpful, you must install the build-essential package, just open a terminal and write





sudo apt-get install build-essential





I hope this will help you!
Reply:sandy honey try this link it might help you





http://www.futuredesktop.com/ubuntu7.04....
Reply:Open up a terminal and type:


sudo apt-get install gcc





Then it might ask you to type in your password, so type it in and press enter.





Then all you have to do is write your C source in a text editor and use GCC like normal.





To find out how to use GCC and it's options type into the terminal:


man gcc

redbud

No comments:

Post a Comment