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
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)
You will need to link with an appropriate runtime support library that contains this function.
/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 divisioninstruction. 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 intdivision).
You will need to link with an appropriate runtime support library that contains this function.
相关文章推荐
- ProcessMaker 3 Workflow & BPM Documentation——Enterprise Trial Guide
- Storm中new Value 与input.getString(int i)
- LinkedBlockingQueue 与ConcurrentLinkedQueue
- 阻塞队列BlockingQueue
- getRequestDispatcher()与sendRedirect()的区别
- primary key与unique的区别
- ConcurrentLinkedQueue Demo
- Builder模式解决构造函数多参数阅读性不好问题
- Java多线程-工具篇-BlockingQueue
- 系统的UITabbleBar怎么自定义(中间圆圈,字体颜色,还有顶部的线条等)
- Codeforces 264B Good Sequences (dp)
- [工作中的设计模式]建造者模式builder
- SynchronousQueue、LinkedBlockingQueue、ArrayBlockingQueue性能测试(转)
- self.edgesForExtendedLayout=UIRectEdgeNone--将原点移动到navigationBar下面
- ThreadPoolExecutor使用和思考(上)-线程池大小设置与BlockingQueue的三种实现区别(转)
- 【IOS】基本UI布局
- hdu 2062 Subset sequence
- 关于for循环与异常 continue、break的用法
- PriorityQueue源码解析
- HDU 1560 DNA sequence(IDA*搜索)