Re: Compiling/Running C Programs?

Originally Posted by
coolyog
i tried the same program but it gavve the following erroe
#include <stdio.h>
int main()
{
printf("Hello, world\n");
return 0;
}
error: stdio.h: No such file or directory
first.c: In function ‘main’:
first.c:6: warning: incompatible implicit declaration of built-in function ‘printf’
Did you try first?, if not, open a terminal and type:
> sudo apt-get install build-essential
after that youll be able to do:
> gcc first.c -o first
and then:
>./first
Best, Gnusci
"Never make a calculation until you know the answer." -- Wheeler, Spacetime Physics, pg 60.
Bookmarks