Strange linker error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
JaJo_1331951
Level 1
Level 1
First like received

I want to include a simple fixed point math header file. It has no additional includes and you only have to specify if the system has 128bit integer support. However, using certain functions causes the linker to throw the following error:

"undefined reference to '__aeabi_ldivmod'"

We can stop this error if we change any INT64 references in the file to INT32. Of course, if we do this many calculations overflow. I've attached the header file just in case. Is there a known solution to this issue?

0 Likes
5 Replies