I have these types:
struct netlib_nw {
int id;
union netlib_op op;
};
union netlib_op {
struct netlib_op_readdir op_readdir;
struct netlib_op_readdir_recv op_readdir_recv;
};
struct netlib_op_readdir {
char* path;
};
struct netlib_op_readdir_recv {
char** recv;
};
I have them cause I wanna tranfer the netlib_nw
via network with different stuff in it.
Here is the error I get:
error: field has incomplete type 'union netlib_op'
union netlib_op op;
^
note: forward declaration of 'union netlib_op'
union netlib_op op;
How to solve that? I do not understand what's wrong with that?
Thanks for your help!