This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
NEWBIES WANTS HELP: hello.c WONT COMPILE
- To: gcc-help at gcc dot gnu dot org
- Subject: NEWBIES WANTS HELP: hello.c WONT COMPILE
- From: ext at freeuk dot com
- Date: Wed, 05 Jan 2000 07:04:04 z (GMT)
.. 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");
}"