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 

posted on 2015-11-04 14:32  追风*逐浪  阅读(2739)  评论(0)    收藏  举报

导航