Undefined reference to `_udivhi3´...

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When trying to compile code with the itoa function i get the message "yada, yada... undefined reference to `_udivhi3´...". Why!?

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you using division in your code? There is no divide instruction in AVR. You will need to emulate the division with some shifting algorithm, or use the provided function in the standard library.

admin's test signature