Hi Gavin,
> I am making a serious effort (again) to get to grips with gcc4_1_2r2.
> I am trying to assemble a short piece of ARM code with
> gcc -o sys.o sys.s
Try one of
gcc -c sys.s
gcc -c -o sys.o sys.s
> I keep getting an error:
> ....: In function 'crt1_data':
> crt0.S:(.data+0x14): undefined reference to 'main'
> collect2: ld returned 1 exit status
> make: *** [sys.o] Error 1
Without -c for `compile only' the C compiler kicks off the
linker/loader, the `ld' in the output, to produce a finished executable.
ld observes the C runtime tries to call main() but no main() is defined.
Cheers, Ralph.
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK
No comments:
Post a Comment