objective-c HelloWorld实践 (gcc编译器)

#import
int main(){
	
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	NSLog(@"Programming Object-C!");
	NSLog(@"How are you!");
	[pool drain];
	return 0;
}
C:\Users\jackz\Desktop\codes\cpp>gcc main.m -ID:\installedSoftware\GNUstep\GNUst
ep\System\Library\Headers -LD:\installedSoftware\GNUstep\GNUstep\System\Library\
Libraries  -lobjc -lgnustep-base -fconstant-string-class=NSConstantString

C:\Users\jackz\Desktop\codes\cpp>a
2016-03-11 18:13:36.028 a[7528] Programming Object-C!
2016-03-11 18:13:36.041 a[7528] How are you!

objective-c HelloWorld实践 (gcc编译器)_第1张图片

objective-c HelloWorld实践 (gcc编译器)_第2张图片

objective-c HelloWorld实践 (gcc编译器)_第3张图片

objective-c HelloWorld实践 (gcc编译器)_第4张图片

objective-c HelloWorld实践 (gcc编译器)_第5张图片


你可能感兴趣的:(objective-c HelloWorld实践 (gcc编译器))