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.


_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to