|
|
|
|
 请问有关c语言 一个错误是什么意思? 谢谢 - guhuo2000 [ 2005-08-30 13:54 | 1,026 byte(s)]
 Re: 请问有关c语言 一个错误是什么意思? 谢谢 - kangjie501 [ 2005-08-30 18:02 | 26 byte(s)]
 Re: 请问有关c语言 一个错误是什么意思? 谢谢 - yugliu [ 2005-09-06 11:01 | 55 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
struct zqy
{
int index;
struct list_head list;
};
list_head是动态库里定义的结构体,
编译后
main.c:6: field `list' has incomplete type
main.c:11: warning: return type defaults to `int'
main.c: In function `main':
main.c:13: warning: implicit declaration of function `INIT_LIST_HEAD'
main.c:14: warning: implicit declaration of function `list_entry'
main.c:14: parse error before "struct"
错误main.c:6: field `list' has incomplete type 是什么意思?
另外main.c:13: warning: implicit declaration of function `INIT_LIST_HEAD'
main.c:14: warning: implicit declaration of function `list_entry'
要紧么? 是动态库不对?
list_head 是在一个list.c里定义的结构体
list.c 用gcc -shared -o lib.so list.o 创建为动态库了
不知道有什么不对的地方?谢谢
|
|
|
[Original]
[Print]
[Top]
|
|
|