| 发表于:2007-08-27 11:25:39 楼主 |
我在移植代码到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.0版本以下(不包括gcc4.0.0)编译不会出现此错误, 但原因在于/usr/include/machine/sys/getppdp.h文件中声明外部数组变量时数组类型还没有定义: extern union mpinfou spu_info[]; 在这里union mpinfou 还没有声明, 所以有错误提示:数组类型含有不完善的成员类型 请问:这种问题应该如何解决? |
|
|
|
|