NEWBIES WANTS HELP: hello.c WONT COMPILE

ext@freeuk.com ext@freeuk.com
Tue Jan 4 23:04:00 GMT 2000


.. i type "gcc hello.c"
and i get "/usr/lib/crt1.o(.text+0x36): undefined reference to 'main' "

this is an example from RedHat book, where i've taken the CD from.
it contained this code
"   main()
    {
           printf("Hello World\n");
    }"



More information about the Gcc-help mailing list