您的位置:首页 > 移动开发 > Objective-C

一个简单的Object-C类及其用make编译

2012-12-09 21:27 351 查看
tire.h

#import <Cocoa/Cocoa.h>

@interface Tire : NSObject
{
float pressure;
float treadDepth;
}

-(void) setPressure: (float) pressure;
-(float) pressure;

-(void) setTreadDepth: (float) treadDepth;
-(float) treadDepth;

@end //Tire


GNUmakefile

include $(GNUSTEP_MAKEFILES)/common.make

TOOL_NAME = Main
Main_OBJC_FILES = tire.m main.m

include $(GNUSTEP_MAKEFILES)/tool.make


编译:

source /usr/share/GNUstep/Makefiles/GNUstep.sh
make
http://www.gnustep.org/resources/documentation/Developer/Base/ProgrammingManual/manual_1.html#GNUstep-Base-Library
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐