我将项目更新为Xcode 5,并在构建设置中启用了模块。 但是,当我使用@import
时,看到编译器错误Unexpected '@' in program
。@import“程序中的意外'@'
#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 –