This is the mail archive of the
mailing list for the GCC project.
Re: (gcc-3.4.cvs) undefined reference to `__udivdi3'
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Axel Siebenwirth <axel at pearbough dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 26 Jan 2004 18:53:21 -0800
- Subject: Re: (gcc-3.4.cvs) undefined reference to `__udivdi3'
- References: <20040125223226.GA29577@neon>
Axel Siebenwirth wrote:
chart.o(.text+0x570): In function `chartdata_ycoord':
: undefined reference to `__udivdi3'
udivdi3 should be supplied by libgcc.a or libgcc_s.so. Likewise for
divdi3. These are functions for long long arithmetic, so you aren't
going notice a problem until you link a program using long long divides.
You should check to make sure that you are running the gcc you think you
are running, and that it is using the right libgcc. Try adding -v to
the gcc command. You may also want -Wl,-v to see what the linker is
doing. You should also check that libgcc.a is OK. Try running nm or ar
on it. You might have an bad one installed.
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com