This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined reference to __fixunsdfdi and __umoddi3
- From: "Jeremy C. Reed" <reed at reedmedia dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 23 Sep 2003 14:13:49 -0700 (PDT)
- Subject: Re: Undefined reference to __fixunsdfdi and __umoddi3
> ld -o scp scp.o progressmeter.o -L. -Lopenbsd-compat/ -L/usr/lib -L/usr/lib -L/usr/lib -Wl,-R/usr/lib -lssh -lopenbsd-compat -lutil -lz -lnsl -lcrypto -lcrypt
> /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0804923c
> scp.o(.text+0x15ac): In function `bwlimit':
> : undefined reference to `__fixunsdfdi'
> scp.o(.text+0x15c1): In function `bwlimit':
> : undefined reference to `__udivdi3'
I fixed this by using "cc" instead of "ld".
Jeremy C. Reed
http://bsd.reedmedia.net/