variable `xxx' has initializer but incomplete type
来源:互联网 发布:郑州360排名优化 编辑:程序博客网 时间:2024/05/29 16:12
说明xxx对应的类型没有找到,类型需要定义.
static struct i2c_driver touchkey_i2c_driver =
{
.driver = {
.owner = THIS_MODULE,
.name = "i2ctouchpannel",
},
.probe = &i2ctouchpannel_probe,
.remove = &i2ctouchpannel_remove,
.id_table = i2ctouch_pannel,
};
在调用内核已经定义好的结构体去初始化我们定义的变量的时候,
如出现 variable 'touchkey_i2c_driver' has initializer but incomplete type,其实就是说明touchkey_i2c_driver 没有被定义,进而说明是“i2c_driver ”
没有被定义,更进一步,其实就是没有#include 相对应的头文件。
如#include <linux/i2c.h>之后,就不会出现variable 'touchkey_i2c_driver' has initializer but incomplete type
- variable `xxx' has initializer but incomplete type
- variable `xxx' has initializer but incomplete type
- variable `xxx' has initializer but incomplete type
- variable "xxx" has initializer but incomplete type
- paip.variable xxx has initializer but incomplete type 解决方案
- variable 'std:ofstream' has initializer but incomplete type
- qt error: variable `QPainter painter' has initializer but incomplete type
- variable 'std:ofstream' has initializer but incomplete type
- error: variable '__this_module' has initializer but incomplete type错误解决
- Error: variable 'QApplication app' has initializer but incomplete type
- variable 'std:ofstream' has initializer but incomplete type 错误
- error: variable ‘QApplication a’ has initializer but incomplete type
- error: variable '__this_module' has initializer but incomplete type错误解决
- 关于错误: error: variable ‘QApplication app’ has initializer but incomplete type
- gcc编译出现field 'xxx' has incomplete type的问题
- 解决 has incomplete type
- field has incomplete type
- error: field ‘?’ has incomplete type
- 转一篇介绍开发嵌入式经验的文章,写得不错,比较中肯,适合一看。
- c# form与js交互——webBrowser1.Document.InvokeScript()
- 页面浏览量问题
- 我奋斗了18年不是为了和你一起喝咖啡
- 上传APP store时证书出错 Invalid code signing.
- variable `xxx' has initializer but incomplete type
- android SwipeListView开源项目导入
- JAXB--简单应用(一)
- zedboard的demo评测
- 一个H行L列的二维矩阵数组(整形),求每行的元素总和,并输出最大的那一行的总和
- 使用CreateFile()打开COM10及以上串行口
- 面向对象3_关键字【this】【static】【final】
- 安卓坦克大战
- 一个H行L列的二维矩阵数组(整形),求每行元素总和,并将每行总和排序输出