读书人

error: field ‘start’ has incomple

发布时间: 2012-10-25 10:58:58 作者: rapoo

求教: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>

读书人网 >UNIXLINUX

热点推荐