您的位置:首页 > 产品设计 > UI/UE

error: undefined reference to '__aeabi_uidiv'

2016-02-01 00:00 555 查看
http://stackoverflow.com/questions/6576517/what-is-the-cause-of-not-being-able-to-divide-numbers-in-gcc

/media/data/Projects/arm/uart/main.c:39: undefined reference to `__aeabi_uidiv'


Answers

The ARM family of CPUs does not have a native integer division
instruction. So, division needs to be implemented by a library function.
GCC knows this, and creates a reference to (in your case)
__aeabi_uidiv
(for
unsigned int
division).

You will need to link with an appropriate runtime support library that contains this function.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: