This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Library and linker errors


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                          *
*******************************************

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]