编译程序时,我收到此消息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>
答案 0 :(得分:3)
这通常表示尚未遇到上述结构的描述,因此您尝试创建编译器尚不了解的类型的变量。可能你错过了标题:
#include <sys/timeb.h>