From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Russ.Shaw" To: egcs@cygnus.com Cc: crossgcc@sourceware.cygnus.com Subject: Library and linker errors Date: Tue, 01 Aug 2000 22:49:00 -0000 Message-id: <3987B6DA.61538FBF@webaxs.net> References: <001101c01fe1$7e10b260$58210b0a@huawei.com.cn> X-SW-Source: 2000-08/msg00003.html Hi all, I'm using gcc-2.95.5 configured as a cross-compiler for the hitachi H8/300H cpu core. I'm using mandrake-7.0. I found that h8300-hms-gcc gets its library files from: /usr/local/h8300-hms/lib/libc.a libg.a libm.a libiberty.a and /usr/local/lib/h8300-hms/libgcc.a (iirc) However, i get lots of linker errors like: /usr/local/h8300-hms/lib/libg.a(strtol.o)(.text+0xfa):strtol.c: undefined reference to '__umodsi3' /usr/local/h8300-hms/lib/libg.a(strtol.o)(.text+0x10a):strtol.c: undefined reference to '__udivsi3' /usr/local/h8300-hms/lib/libg.a(strtol.o)(.text+0x152):strtol.c: undefined reference to '__umulsi3' I can't find where __umodsi3 etc are defined. In my makefile, i'm linking ld using -lgcc -liberty -lg -lc -lm. -- ******************************************* * Russell Shaw, B.Eng, M.Eng(Research) * * email: russell@webaxs.net * * Australia * ******************************************* ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com