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]
Other format: [Raw text]

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/


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