Huy*_*oan 4 c struct incomplete-type
在我的头文件中我有这个
typedef struct _client_value
{
int client_id;
struct timeval t;
size_t size;
char value[0];
} client_value;
Run Code Online (Sandbox Code Playgroud)
我已经包含了<time.h>,但是当我编译时,它说:field 't' has incomplete type struct timeval t。
我不明白这是怎么发生的。