嗨,我尝试使用 gcc 编译 C 程序,但出现此错误:
timerc.c:在函数'timer_'中:timerc.c:32:16:错误:'Time_Struct'的存储大小未知
这是程序:
#include <sys/types.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
void timer_(long *UnixSysTime)
{
int dummy;
struct timeb Time_Struct;
dummy=ftime(&Time_Struct);
*UnixSysTime=Time_Struct.time;
}