【发布时间】:2016-03-29 13:46:53
【问题描述】:
我正在尝试在 Objective-C 中使用 gettimeofday。但是,我遇到了这两个问题:
“函数 'gettimeofday' 的隐式声明在 C99 中无效”
“'gettimeofday' 的声明必须先从模块 'Darwin.POSIX.sys.time' 导入”
我已经执行了这些导入:
#import <UIKit/UIKit.h>
#include <time.h>
但问题仍然存在?
提前致谢。 /JBJ
【问题讨论】:
标签: ios objective-c xcode