Hi All,
I am starting to learn c programming in mac os X Leopard. So I edited a file called Hello.c
#include <stdio.h>
int main()
{
printf ("Hello, world");
return 0;
}
and saved it.
Then I go to the terminal /developer/usr/bin/gcc hello.c.
It came out that the stdio.h wasn't there.
Could someone please tell me the reason why I can't compile the hello.c and why gcc can't find stdio.h.
Thanks.
I am starting to learn c programming in mac os X Leopard. So I edited a file called Hello.c
#include <stdio.h>
int main()
{
printf ("Hello, world");
return 0;
}
and saved it.
Then I go to the terminal /developer/usr/bin/gcc hello.c.
It came out that the stdio.h wasn't there.
Could someone please tell me the reason why I can't compile the hello.c and why gcc can't find stdio.h.
Thanks.