Hello World Program

I'm trying to compile and run the following program:

[File: hello/hello.c]
#include <stdio.h>

int main ()
{
printf("Hello World\n");
return (0);
}

This is what I'm getting in Terminal:

[localhost:~/learning_c] aaron% cc -g -ohello hello.c
hello.c:1: error: parse error before '[' token
[localhost:~/learning_c] aaron%

Any tips?

I'm running OSX 10.4.7 by the way.

Is this text part of your file?

[File: hello/hello.c]

If it is, remove it from the file. The first line should be

#include <stdio.h>

That should work.

thanks. I wish the book I was using had specified that.