This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Library and linker errors
- To: gcc-help at gcc dot gnu dot org
- Subject: Library and linker errors
- From: "Russ.Shaw" <russell at webaxs dot net>
- Date: Wed, 02 Aug 2000 14:48:02 +1000
- References: <965190972.29952.ezmlm@gcc.gnu.org>
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 *
*******************************************