PDA

View Full Version : [ubuntu] [SOLVED] cant get gcc to work...



s_raghu20
September 17th, 2008, 09:37 PM
Hi guys,

Installed a brand new copy of hardy...

tried to run a demo c program.. hello world kind of...
but it turns out that gcc doesnt seem to work here... It keeps saying...


raghav@deskubuntu:~/cprgs$ gcc hello.c -o a.out
hello.c:1:18: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:5: warning: incompatible implicit declaration of built-in function ‘printf’


doing a find on the stdio.h all over the system didnt help either...

any pointers ??

thanks in advance..

regards
raghav..

Partyboi2
September 18th, 2008, 02:20 AM
Have you got build-essential package installed?

s_raghu20
September 18th, 2008, 07:40 AM
Have you got build-essential package installed?

thanks :) it worked.