首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

error: field ‘start’ has incomplete type

2012-10-25 
求教: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>

热点排行