编译linux时出现:“错误:数组元素的类型不完全”
来源:互联网 发布:什么是域名和网址 编辑:程序博客网 时间:2024/06/05 00:47
系统:Fedora Core4
内核:2.6.11.1
出现错误:
1、
CC drivers/i2c/i2c-core.o
In file included from drivers/i2c/i2c-core.c:29:
include/linux/i2c.h:58: error: array type has incomplete element type
include/linux/i2c.h:197: error: array type has incomplete element type
drivers/i2c/i2c-core.c: In function ‘i2c_transfer’:
drivers/i2c/i2c-core.c:594: error: type of formal parameter 2 is incomplete
drivers/i2c/i2c-core.c: In function ‘i2c_master_send’:
drivers/i2c/i2c-core.c:620: error: type of formal parameter 2 is incomplete
drivers/i2c/i2c-core.c: In function ‘i2c_master_recv’:
drivers/i2c/i2c-core.c:649: error: type of formal parameter 2 is incomplete
make[2]: *** [drivers/i2c/i2c-core.o] 错误 1
make[1]: *** [drivers/i2c] 错误 2
make: *** [drivers] 错误 2
解决方法:
将include/linux/i2c.h中第58,197行内struct i2c_msg msg[]改为struct i2c_msg *msg
2、
In file included from drivers/media/video/bttv-driver.c:42:
drivers/media/video/bttvp.h:233: 错误:数组元素的类型不完全
不允许类型在声明前使用,因此调换次序就可以顺利通过。
。。。
- 编译linux时出现:“错误:数组元素的类型不完全”
- ·编译c时出现数组元素的类型不完全错误
- 提领指向不完全类型的指针 编译错误
- C文件编译错误:数组、数据类型不完全
- linux内核编译时出现的错误
- linux 编译出现的错误
- 错误:提领指向不完全类型的指针
- 关于编译错误--提领指向不完全类型的指针
- 关于编译错误--提领指向不完全类型的指针
- linux编译出现错误
- Linux下编译时出现的错误及解决方法
- 编译Linux版本飞鸽传书的不完全解决办法
- linux编译pam时出现段错误
- C++删除不完全类型数组
- 编译出现的错误
- /usr/include/linux/netfilter.h: 错误:‘in’的类型不完全,netfilter_ipv4.h:53: ‘INT_MIN’‘INT_MAX’未声明解决方法
- 在编译VS2005时出现的错误
- 编译模板类时出现的错误
- 用occi函数封装的连接池类
- asp关闭错误处理方法
- Sourceforge.net又可以访问了
- 海子诗《面朝大海, 春暖花开》
- [收集]Windows 性能监视器的计数器及阈值应用
- 编译linux时出现:“错误:数组元素的类型不完全”
- VC中利用ADO共同实现数据库的操作
- djk-error
- ArcGIS 影像图配准
- VSS使用手册
- 视图有以下几方面的功能
- stack overflow问题
- 什么是Web 2.0
- 各行业ERD