H
Halid Umar A M
Dear All,
Please tell me why this error is occuring. The following is the
code snippets which i have typed.
struct mystructure{
struct list_head m; //error: field m has
incomplete type
uint32_t ip;
time_t time;
};
struct another{
struct list_head m; //error: field m has
incomplete type
unsigned long count;
rwlock_t kern_lock; //error: syntax error before
rwlock_t
};
I have included linux/list.h for the list_head and inttype.h for the
uint32_t and finally i got the error
error: field m has incomplete type
error: syntax error before rwlock_t
Please tell me, why this error is happening.
Please tell me why this error is occuring. The following is the
code snippets which i have typed.
struct mystructure{
struct list_head m; //error: field m has
incomplete type
uint32_t ip;
time_t time;
};
struct another{
struct list_head m; //error: field m has
incomplete type
unsigned long count;
rwlock_t kern_lock; //error: syntax error before
rwlock_t
};
I have included linux/list.h for the list_head and inttype.h for the
uint32_t and finally i got the error
error: field m has incomplete type
error: syntax error before rwlock_t
Please tell me, why this error is happening.