Есть семнадцатая федора. Захотел я попробовать Objective-C. Поставил компилятор gobjc, написал исходник
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog (@"hello world");
[pool drain];
return 0;
}
Затем попробовал в командной строке
gcc main.m -lobjc
cannot find interface declaration for ‘NXConstantString’
Ставлю OPENstep как написано здесь http://www.techotopia.com/index.php/Installing_and_Using_GNUstep_and_Objectiv...
Затем пробую в командной строке
gcc `gnustep-config --objc-flags` -lgnustep-base main.m
Выдаёт
/usr/bin/ld: /usr/lib/gcc/i686-redhat-linux/4.7.2/../../../libgnustep-base.so: undefined reference to symbol 'objc_msg_lookup'
/usr/bin/ld: note: 'objc_msg_lookup' is defined in DSO /lib/libobjc.so.4 so try adding it to the linker command line
/lib/libobjc.so.4: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Как скомпилировать?