ChinaUnix.net
相关文章推荐:

error elements of array `filterinstr' have incomplete type

socket 编程中,通过gethostbyname() 或者 gethostbyaddr 取得主机的 hostent 解构的信息, 现在从中提取出地址信息: [code] struct host * host; struct sockaddr_in address; .... ... ... memcpy (&address.sin_addr, host->h_addr_list[0], sizeof(address.sin_addr)); 或者: address.sin_addr=*((struct in_addr *)host->h_addr); [/code] 编译的时候出现这样的错误: error: dereferencing pointer to incomplete type ...

by Co_Coiiz - C/C++ - 2006-12-21 16:21:40 阅读(9253) 回复(12)

相关讨论

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 阅读(1640) 回复(4)

我在移植代码到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)

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 阅读(2600) 回复(0)

本贴我说不好要放在哪个具体的讨论区,觉得c区还合适,就放这里了, 本贴的目的是帮比我还菜的小鸟遇到这个问题好解决些,写完这个我 想在google或者baidu上搜partitions.h:61: error: field `list' has incomplete type 这样的关键字,应该能找到这贴了吧. 我今天在编译linux2.6.14.2的内核的时候,遇到了这个问题, 但是在google和baidu上找,都是提问的,就没有理睬过,那好 我就自己找答案: 主要是针对s3c2410的内核移植, 在我都培植好后...

by fydream - C/C++ - 2015-11-19 16:25:47 阅读(15426) 回复(4)

原来在windows下能运行的程序,移植到linux下,出现上述错误,请大侠不吝赐教! 附部分相关代码: struct listen { char Cookie; long RequestTimeStamp; long RequestFileSize; struct listen *left, *right ; }listenqueue; struct BufferQueue *h=NULL ; h=(struct BufferQueue *)malloc(sizeof ( BufferQueue)); h->Cookie=a ; h->RequestTimeStamp=finish ; h->RequestFileSize = (rand()%100) ; h->le...

by 51167899 - C/C++ - 2006-07-24 16:11:47 阅读(1571) 回复(2)

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

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

自己试着去实现一个二叉查找树,程序有3个文件,bsearch.h,bsearch.c和main.c。 bsearch.h中这样: [code]struct TreeNode; 11 12 typedef struct TreeNode* Position; 13 typedef struct TreeNode* SearchTree; 14 /******************************/ 15 typedef int Elementtype; 16 /******************************/ [/code] bsearch.c中这样: [code] #include ; 3 #include

by albcamus - C/C++ - 2005-01-19 13:03:36 阅读(6101) 回复(6)
by joeshow - C/C++ - 2006-06-07 18:24:37 阅读(1462) 回复(2)

我的c++程序在运行一段时间后,core掉了 debug出来的信息是: this=<incomplete type>; 还有

;什么的 请问大虾,是什么原因导致上述错误的发生呢?

by yanhuiyan - C/C++ - 2004-03-19 10:14:46 阅读(716) 回复(1)