Error[Pe393]: pointer to incomplete class type is not allowed
time.h
struct tm
{ /* date and time components */
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
#if _DLIB_SUPPORT_FOR_AEABI
int __BSD_bug_filler1;
int __BSD_bug_filler2;
#endif /* _DLIB_SUPPORT_FOR_AEABI */
};
Software_RTC.h//错误原因,定义了 timeinfo 但是没有包含 time.h 头文件在Software_RTC.h文件中
struct tm *timeinfo;
Contriol.c
if(0 < timeinfo ->tm_wday < 6)
{
;
}
编译error:
Error[Pe393]: pointer to incomplete class type is not allowed
浙公网安备 33010602011771号