【发布时间】:2010-08-26 18:33:04
【问题描述】:
我正在尝试使用 Xcode 3.2.3 开发一个新的静态库。
Xcode 在我的 G.h 文件中给出了如下所示的奇怪错误消息。 这些错误的原因是什么?
查尔斯
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIKitDefines.h>
@interface G : NSObject {
int fontSize, canvasWidth, canvasHeight;
}
UIColor *lightslategray;
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
@property int fontSize, canvasWidth, canvasHeight;
-(void) DrawLine:(float)x1 :(float)y1 :(float)x2 :(float)y2 :(float) lineWidth: (UIColor *)color;
error: expected ')' before 'UIColor'
@end
【问题讨论】: