error: field ‘start’ has incomplete type
求教:error: field ‘start’ has incomplete typeC/C++ code#include stdio.h#include time.hstruct A{
求教:error: field ‘start’ has incomplete type
C/C++ code#include <stdio.h>#include <time.h>struct A{ struct timeval start;};int main(int argc, char **argv){ printf("hello world\n"); return 0;}
error: field ‘start’ has incomplete type
[解决办法]#include <sys/time.h>