Library and linker errors

Russ.Shaw russell@webaxs.net
Tue Aug 1 22:49:00 GMT 2000


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



More information about the crossgcc mailing list