Problem with typedef struct
Hi All,
I am facing problem with the Problem code. Can any one help?
Code:
#include <stdio.h>
typedef struct
{
void *data;
AdQueueNode *next;
}AdQueueNode;
int main()
{
AdQueueNode q;
...
...
...
}
When I tried to compile the following error came.
Code:
test.c:7: parse error before "AdQueueNode"
test.c:7: warning: no semicolon at end of struct or union
test.c:9: warning: data definition has no type or storage class
test.c: In function `main':
test.c:14: `n' undeclared (first use in this function)
test.c:14: (Each undeclared identifier is reported only once
test.c:14: for each function it appears in.)
Please help, What I am doing wrong?
Thanks in Advance.
Regards,
Maddy.