[cfe-dev] clang 3.4 with ubuntu server 3.10 for objective-c 2 development?
Ben Pope
benpope81 at gmail.com
Fri Mar 28 01:33:38 PDT 2014
On Friday, March 28, 2014 04:02 PM, Mayuresh Kathe wrote:
> 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?
Clang doesn't come with the libraries you're trying to use. Get them
like so:
sudo apt-get install gnustep gnustep-devel
If you still have problems, provide your command line and the error, it
will make it much easier to work out what's wrong.
Ben
More information about the cfe-dev
mailing list