[cfe-dev] clang 3.4 with ubuntu server 3.10 for objective-c 2 development?

Mayuresh Kathe mayuresh at kathe.in
Fri Mar 28 01:02:07 PDT 2014


hello,

i am new to this list as well as everything related to clang/llvm and 
obj-c.

i wish to do objective-c 2 development under ubuntu server 3.10 and 
googling around has shown clang 3.4 to be the most ideal compiler set.

installed clang 3.4 via 'apt-get' and tried compiling a simple "hello, 
world" sample (mentioned below) but the compiler threw up a whole lot of 
errors.

//--------- begin ---------
@interface Hello:NSObject
- (void) say;
@end
@implementation Hello
- (void) say {
    NSLog(@"Hello, world!");
}
@end

int main(int argc, char *argv[])
{
     @autoreleasepool {;
         [[Hello new] say];
     }
     return 0;
}
//------------ end -------------

i'm sure there's something more i need to install other than just clang 
3.4.
may i know what else?

thanks,

~mayuresh




More information about the cfe-dev mailing list