Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On Mon, 27 Aug 2001, Ron Peterson wrote: > When I link, I get: > > 1032$ make > ld -s -Bstatic -o avtemp /usr/lib/crt1.o /usr/lib/crti.o avtemp.o -lc > /usr/lib/libc.a(strtoll.o): In function `__strtoll_internal': > /usr/src/bs/BUILD/glibc-2.2.2/stdlib/../sysdeps/generic/strtol.c:386: > undefined\ reference to `__udivdi3' > ... Got it. __udivdi3 comes from libgcc.a, which on my system is found at /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a. A clever way to put this in a Makefile is: LIBGCC := $(shell $(CC) -print-libgcc-file-name) then put ${LIBGCC} on the end of the 'ld' line. Thank god for google. -- If anyone has any links to good assembly language sites, esp. newbie tutorial type stuff, that would be great. Advice, admonitions, are all welcome. I'm thinking I'll work on gas because I'm partial to GNU. -Ron- https://www.yellowbank.com/ - Subcription/unsubscription/info requests: send e-mail with "subscribe", "unsubscribe", or "info" on the first line of the message body to discuss-request at blu.org (Subject line is ignored).
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |