- 论坛徽章:
- 0
|
我有两个文件。一个是源文件,另一个是头文件,在编译时出现以下错误:
In file included from /usr/include/linux/wireless.h:74,
from defs.h:8,
from guonana.c:1:
/usr/include/linux/if.h:86: field `ifru_addr' has incomplete type
/usr/include/linux/if.h:87: field `ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:88: field `ifru_broadaddr' has incomplete type
/usr/include/linux/if.h:89: field `ifru_netmask' has incomplete type
/usr/include/linux/if.h:90: field `ifru_hwaddr' has incomplete type
In file included from defs.h:8,
from guonana.c:1:
/usr/include/linux/wireless.h:536: field `ap_addr' has incomplete type
/usr/include/linux/wireless.h:537: field `addr' has incomplete type
guonana.c: In function `sip_ipreq_send':
guonana.c:391: warning: passing arg 1 of `sip_ipreq_create' makes pointer from integer without a cast
guonana.c: In function `main':
guonana.c:403: warning: passing arg 1 of `sip_ipreq_send' makes pointer from integer without a cast
make[1]: *** [guonana.o] Error 1
make[1]: Leaving directory `/root/guo'
make: *** [all] Error 2
这是什么问题啊?谢谢! |
|