incomplete type 'struct' error in C
问题 I have this issue and can't see where the error is so I'm hoping someone can help address it. The error I get from compiling the source is: client.c:15:54: error: invalid application of ‘sizeof’ to incomplete type ‘struct client’ I have the struct definition inside a header file - client.h: #ifndef PW_CLIENT #define PW_CLIENT #include <event2/listener.h> #include <event2/bufferevent.h> #include <event2/buffer.h> #include <arpa/inet.h> #include <stdlib.h> #include <stdio.h> #include <errno.h>