So, I got Ubuntu and clang3.0 installed and a simple program.m:
#include <Foundation/Foundation.h>
int main()
{
@autoreleasepool{
NSLog(@"Hi");
}
return 0;
}
and I try to compile it like this:
clang first.m -I /usr/include/GNUstep/ -lgnustep-base -fconstant-string-class=NSConstantString -objc
and I get
undefined reference to objc_autoreleasePoolPush
undefined reference to objc_autoreleasePoolPop
so I've googled a little and install objc2 and tried:
clang first.m -I /usr/include/GNUstep/ -lgnustep-base -fconstant-string-class=NSConstantString -objc2
but nothing changes. Maybe someone had same problem solved?