0

error: storage size of 'start' isn't known当我编译我的程序时,我有这个消息。错误在这里:

struct _timeb start, finish;

当我放置声明和原型时,我制作了一个头文件

#include <stdio.h>
#include <stdlib.h>
#include <sys/timeb.h>
#include <time.h>

在我的 .c 文件中,我把

#include "image.h"
#include <math.h>
4

1 回答 1

3

这通常表明尚未遇到所提及结构的描述,因此您正在尝试创建编译器尚不知道的类型的变量。您可能缺少标题:

#include <sys/timeb.h>
于 2013-04-08T20:48:34.987 回答