ios - time.h functions do not see the header file -
i using structures , methods listed below , including sys/time.h or time.h not change anything. can problem?
struct tm thetime; strptime((char *)nodevalue, "%a %b %d %h:%m:%s +0000 %y", &thetime); time_t epochtime = timegm(&thetime);
i using xcode , compile armv7. (before, working perfectly. don't know what's changed since before..)
i following errors:
variable has incomplete type 'struct tm' implicit declaration of function 'strptime' invalid in c99 implicit declaration of function 'timegm' invalid in c99
enable declarations defining feature test macro -d_posix_c_source=200809l
@ compilation time or before including header:
#define _posix_c_source 200809l #include <time.h>
see here more information on feature test macro _posix_c_source
.
Comments
Post a Comment