error: undefined reference to '__aeabi_uidiv'
http://stackoverflow.com/questions/6576517/what-is-the-cause-of-not-being-able-to-divide-numbers-in-gcc
阅读(39) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
/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.
上一篇:为android提供的部分第三方C/C++静态库—libsqlite—libuuid—libevent_static
下一篇:编译cBPM-android—CodeBlocks(全局、局部)参数设置—CentOS 7— android-ndk
相关热门文章
给主人留下些什么吧!~~
评论热议