Simple question about GCC segments
Lam Lee
lamlee@spawar.navy.mil
Fri Oct 1 00:00:00 GMT 1999
Hello,
Does anyone know why I get the undefined references below during link
time? I cannot use majority of the functions in stdlib, but the functions
in string.h seem compiling okay.
Thanks!
Lam
as start.s -o start.o -L -a >start.l
gcc -c -g -ms hwinit.c
gcc -c -g -ms bt5mon.c
ld -o bt5mon.out start.o hwinit.o bt5mon.o -lg -Tbt5mon.lnk
c:/cygnus/bin/../lib/libg.a(strtol.o)(.text+0x10a):strtol.c: undefined
reference
to `__umodsi3'
c:/cygnus/bin/../lib/libg.a(strtol.o)(.text+0x11a):strtol.c: undefined
reference
to `__udivsi3'
c:/cygnus/bin/../lib/libg.a(strtol.o)(.text+0x188):strtol.c: undefined
reference
to `__mulsi3'
I
More information about the Gcc-help
mailing list