我正在使用下面列出的结构和方法,包括 sys/time.h 或 time.h 不会改变任何东西。可能是什么问题?
    struct tm theTime;
    strptime((char *)nodeValue, "%a %b %d %H:%M:%S +0000 %Y", &theTime);
    time_t epochTime = timegm(&theTime);
我正在使用 XCode 并为 armv7 编译。(以前,这工作得很好。我不知道从前有什么变化......)
我收到以下错误:
    Variable has incomplete type 'struct tm'
    Implicit declaration of function 'strptime' is invalid in C99
    Implicit declaration of function 'timegm' is invalid in C99