ChinaUnix.net
相关文章推荐:

array type has incomplete element type

我在移植代码到hp(ia64 B.11.23)时编译出错, 编译器用的是gcc4.1.0,错误提示为: In file included from /usr/include/sys/mp.h:53, from /usr/include/sys/malloc.h:59, from /usr/include/net/netmp.h:51, from /usr/include/net/if.h:59, /usr/include/machine/sys/getppdp.h:65: error: array type has incomplete element type 我在网络上查找答案,发现编译器gcc4.0....

by siyuer - HP-UX - 2006-04-27 09:32:14 阅读(2185) 回复(0)

相关讨论

我在移植代码到hp(ia64 B.11.23)时编译出错, 编译器用的是gcc4.1.0,错误提示为: In file included from /usr/include/sys/mp.h:53, from /usr/include/sys/malloc.h:59, from /usr/include/net/netmp.h:51, from /usr/include/net/if.h:59, /usr/include/machine/sys/getppdp.h:65: error: array type has incomplete element type 我在网络上查找答案,发现编译器gcc4.0....

by siyuer - HP-UX - 2006-04-27 09:32:14 阅读(2907) 回复(0)

If a specifier with a tag but without a list appears when the tag is not declared, an incomplete type is specified. Objects with an incomplete structure or union type may be mentioned in contexts where their size is not needed, for example in declarations (not definitions), for specifying a pointer, or for creating a typedef, but not otherwise. The type becomes complete on occurrence of a subseque...

by shihyu - C/C++ - 2007-06-11 23:34:38 阅读(1641) 回复(4)

在测试ioctl时,编译测试程序,出现:
my_scull.h:51: error: field ‘my_scull_cdev’ has incomplete type
my_scull.h:52: error: field ‘sem’ has incomplete type
出现此问题是因为在用户空间误用了内核空间的东西,在用户空间这些是不被认识的。
可自己写一个头文件,把想要的写到里面,与内核空间的东西分离开就可以解决了。

by ice2000feng - 移动操作系统 - 2011-12-23 01:46:16 阅读(1056) 回复(0)

[code] #include #include type.h> #include #include // For bool, false, true #include // For strcmp() struct Family * get_person(void); struct Famliy *pmember1; struct Family *pmember2; bool set_ancestry_fuck(struct Famliy *pmember1, struct Family *pmember2); struct Date { int day; int month; int year; }; struct Family { st...

by 蓝天下的乌鸦 - C/C++ - 2012-11-14 14:51:34 阅读(1987) 回复(6)

gdb p ofstream 为什么是 incomplete sype gdb p str 可以看到string的定义, 如果想看到 ofstream 的定义 该怎么作阿? 谢谢![code]#include #include #include using namespace std; int main() { ofstream out("test.txt"); string str("nihao"); stringstream ss; ss << str; ss << "1213213213213\n"; ss << "this is ss...

by jazeltq - Linux环境编程 - 2011-10-17 09:57:54 阅读(4723) 回复(4)

dereferencing pointer to incomplete type dereferencing pointer to incomplete type 的错误也是未包含某些头文件造成的! 分析数据包:判断通信双方的操作系统、网络信息流量、通过路由的数据包大小、数据包内容。 以太网:以太网的桢? 以太网中,数据是以被称为帧的数据结构本为单位进行交换的。 现在最常用的帧格式MAC V2 v2帧的格式: (插入8字节)目的地址(6字节)-源地址(6字节)-类型(2字节)-数据(46-150...

by cbc - MySQL文档中心 - 2005-12-02 13:24:31 阅读(1141) 回复(0)

我在aix5l , db2 8.1 上编译时,cc 报 1506-914 incomplete type is not allowed 是什么意思啊,我的程序在其他的环境上是没有问题的, 而且 cc 是说 mytest.sqc 的 sqlca.sqlcode 好象有问题。程序代码如下: #include ; #include ; #include ; EXEC SQL INCLUDE sqlca; main { EXEC SQL BEGIN DECLARE SECTION: EXEC SQL end DECLARE SECTION: EXEC SQL CONNECT TO :dbname i...

by yuchbo - DB2 - 2003-09-08 18:19:05 阅读(2602) 回复(0)
by joeshow - C/C++ - 2006-06-07 18:24:37 阅读(1462) 回复(2)

我反复检查了代码,是没有错的。 在网上简单搜了一下,说是头文件包含的问题。 我这网络访问受限,百度快照都打不开,只能跑这来问问了。 好心人给指点个迷津。:lol:

by sjh_311 - C/C++ - 2010-11-29 14:59:37 阅读(12327) 回复(10)

我把2.4下的一段代码移到2.6下,但是在编译到调用LIST_FIND()的时候报这个错: dereferencing pointer to incomplete type 请问下,是什么问题阿 代码如下: #include types.h> #include #include #include #include #include #include #include #include #include

by falcon_13 - Linux环境编程 - 2007-05-12 18:39:20 阅读(2890) 回复(1)