This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Mon, Mar 13, 2000 at 09:13:12AM +0100, Kim Jørgensen wrote: > > First I did a "m68k-coff-gcc -c -mc68000 test.c". > Then I did a "m68k-coff-ld test.o", I got these error messages: > > test.o(.text+0x6):test.c: undefined reference to `__main' > test.o(.text+0x24):test.c: undefined reference to `__udivsi3' You need to link against libgcc*, which contains the support routines which the compiler needs for some operations on some CPUs. So, either use -lgcc (or -lgcc1 or whatever it is exactly), or (preferred) call 'gcc' instead of 'ld' to do the final link. gcc will automaticylla add the support libraries, *and* it knows where to find them, regardless where you installed the compiler. cu Michael -- Michael Schwingen, Ahornstrasse 36, 52074 Aachen ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |