【发布时间】:2013-10-16 20:24:51
【问题描述】:
我将项目更新为 Xcode 5 并在构建设置中启用了模块。
但是,当我使用 @import 时,我看到编译器错误 Unexpected '@' in program。
#ifndef __IPHONE_7_0
#warning "This project uses features only available in iOS SDK 7.0 and later."
#endif
#ifdef __cplusplus
#import <opencv2/opencv.hpp>
#endif
#ifdef __OBJC__
@import SystemConfiguration;
@import UIKit;
还有什么需要做的吗?
【问题讨论】:
-
在你使用@import的地方添加代码