Unable to compile Objective-C code on Ubuntu
问题 So I have this piece of code... /** * cdb.m * Copyright (C) 2013 Naveen Mathew. All rights reserved. */ #import <objc/Object.h> #import "cdb.h" #import <stdio.h> #import <stdlib.h> @implementation CDB : Object { } - (int) main { printf("Hello world"); return 0; } @end int main(void) { CDB *myNumber = [CDB new]; // equal to [[Number alloc] init] [myNumber main]; return 0; } and I want to compile it in Ubuntu 13.04 but without all the crap that GNUStep gives me. So I use the GNU Objective C