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

Sylvestre Ledru sylvestre at debian.org
Fri Mar 28 01:45:51 PDT 2014


On 28/03/2014 09:33, Ben Pope wrote:
> 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
Do you think that should be a hard dependency of the Debian/Ubuntu
package or a recommendation of the package ?

Thanks,
Sylvestre




More information about the cfe-dev mailing list