Webdetector Webmaster Forums - Your favorite webmaster community
 
  #1 (permalink)  
Old 06-09-2008, 04:35 PM
Junior Member
noobee
 
Join Date: Jun 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing GCC compiler in Ubuntu?

hi....

im studying b.tech computer science 3rd year. i have a practical lab called "Network Programming" . we did a program on establishing tcp/ip connection between client and server. i should practice these programs in my pc. first i tried on my pc by writing a simple program

#include<stdio.h>
int main()
{
printf("hi linux");
return 0;
}

when i compile this program in my pc, a error message called "stdio.h file or folder doesn't exist". how to resolve it....
how do i install gcc compiler in ubuntu????
since im new to ubuntu i have no idea what to do now.
someone help me. thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 06-11-2008, 07:44 AM
Junior Member
noobee
 
Join Date: Jun 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing GCC compiler in Ubuntu?

Hi madhan,

Just run this command:

sudo apt-get install build-essential
(You must be connected to the internet for doing this)

Then you compile your C code with

gcc source_file_name.c -o executable_name
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Ad Management by RedTyger