ld: fatal error

i am trying to compile my program using a makefile and i keep getting this message:

Undefined first referenced
symbol in file
main
/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o
ld: fatal: Symbol referencing errors. No output written to prog5
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target 'prog5'

this is driving me crazy!!!!

Can you post your code? Do you have a 'main' function in your program?

All executable C programs must have this function:

int main(int argc, char *argv[])
{
  printf("Program begins here\n");
  return(0);
}

main() is called when the program begins; when main returns, the program ends.