一个简单的Object-C类及其用make编译
2012-12-09 21:27
351 查看
tire.h
GNUmakefile
编译:
source /usr/share/GNUstep/Makefiles/GNUstep.sh
make
http://www.gnustep.org/resources/documentation/Developer/Base/ProgrammingManual/manual_1.html#GNUstep-Base-Library
#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
相关文章推荐
- 一个简单的groovy script生成的class文件及其反编译
- 1.编写一个简单的C语言程序:计算输入多个整数的平均值,并将此程序分割成多个小文件。 2.为第1题中的程序编写makefile文件,用make编译后改成返回最小值,再编译,观察有多少文件不需要重新
- 1.编写一个简单的C语言程序:计算输入多个整数的平均值,并将此程序分割成多个小文件。 2.为第1题中的程序编写makefile文件,用make编译后改成返回最小值,再编译,观察有多少文件不需要重新
- 一个及其简单的卸载linux的方法
- 发布一个简单而又灵活的基础编译环境文件:compiler.mk,欢迎大家共同改进之
- 一个及其简单的图片自适应
- 最简单直接继承、扩展Object,或者克隆一个Object到能创建多个互不干扰实例的方法
- Google PB协议学习记录--一个简单的例子--如何编译.proto文件为.java文件
- [每天一个Linux小技巧] make 编译提速
- gec2440最简单的一个内核编译 linux2.6.30.4
- 编译和安装linux内核2.6.x,一个简单的内核驱动测试
- Cairngorm 一个简单的例子(RemoteObject)
- JNI 在Android Studio利用NDK编译运行一个简单的c库
- (作业1)将一个简单的C程序编译成汇编代码,讨论计算机是如何工作的进行
- 开始学习Python,设置环境和编译一个简单的程序
- Linux中编译一个简单的源文件的过程
- 终端下编译运行一个简单C++程序流程
- 使用vs编译器编译一个简单的dll项目
- 教你如何生成一个简洁又美观的html报告及其简单分析(三)
- 【编译原理龙书笔记】(二)一个简单的语法制导翻译器(仍未完成)