This is the mail archive of the gcc@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: (gcc-3.4.cvs) undefined reference to `__udivdi3'


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



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