This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

NEWBIES WANTS HELP: hello.c WONT COMPILE


.. 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");
    }"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]