c编程(linux)
来源:互联网 发布:手机淘宝联盟怎么赚钱 编辑:程序博客网 时间:2024/06/03 16:41
1. function declaration isn't a prototype
error: static void print_dcache_info();
normal:static void print_dcache_info(void);
In C
int foo()
and int foo(void)
are different functions. int foo()
accepts an arbitrary number of arguments, while int foo(void)
accepts 0 arguments. In C++ they mean the same thing. I suggest that you use void
consistently when you mean no arguments.来源: <http://stackoverflow.com/questions/42125/function-declaration-isnt-a-prototype>
2.解决undefined reference to `__aeabi_uidivmod'
编译 linux driver出现这个问题,后来反复实验发现,与64位除法有关;
嵌入式内核只支持32运算,对于64位运算除法要用divu64
#include <linux/math64.h>
0 0
- [Linux] linux C编程
- Linux C编程---网络编程
- Linux C编程网络编程
- Linux C编程---网络编程
- linux c编程--文件系统编程
- Linux C编程---网络编程
- linux-C编程-网络编程
- linux-C编程-串口编程
- Linux-C编程-环境编程
- Linux C编程---网络编程
- [Linux C编程]多线程编程
- linux-C编程-网络编程
- Linux下C编程
- Linux-C-Socket编程
- Linux-C-Socket编程
- linux c编程
- Linux-C-Socket编程
- linux c xml 编程
- 程序员没有天才:暴风影音首席架构师鲍金龙访谈
- 百度Q3财报公布,O2O转型志在必得
- git使用
- 数组中出现次数超过一半的数字
- Codevs2800 送外卖
- c编程(linux)
- C程序编译过程
- cacti使用官方下载的脚本和模板
- UML——行为图
- iOS9下App Store新应用提审攻略
- UML第五集
- 双数组后缀树 Double-Array Trie(DAT)
- Android 侧滑菜单的实现
- ajax返回json数据