avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] problems with divisions using libgcc.a


From: Björn Haase
Subject: Re: [avr-libc-dev] problems with divisions using libgcc.a
Date: Sat, 28 Jan 2006 23:47:27 +0100
User-agent: KMail/1.7.1

Ingo Heffe wrote on Sonntag, 29. Januar 2006 12:19 :
> Hello,
>
> i'm using the cdk4avr environment for programming an Atmel-Mega64
> controller on a Mandrake-10.1-PC.
> If a division-command with a divisor, that can't be expressed by a
> shift-operation (e.g. variable /= 10;) is implemented, the linker causes
> an error " undefined reference to "__udivmodhi4".
The _udivmodhi4 function is part of gcc itself. This should be available if 
avr-gcc is properly installed.

Maybe you did not use avr-gcc in order to link your binary but avr-ld itself.? 
Otherwise there is probably something else wrong with your avr-gcc 
installation. Probably it would be best to detail how you installed avr-gcc.

HTH,

Bjoern.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]