OpenBSD vs Objective-C

Steve Mertz steve@dragon-ware.com
Tue Apr 13 18:14:00 GMT 2004


I'm trying to use ObjC on OpenBSD 3.2.  gcc version 3.3.3.

$ gcc -o try *.o -lobjc
ld: SString.o: RRS text relocation at 0x25dc for
"___objc_class_name_Object"
ld: SString.o: RRS text relocation at 0x25dc for
"___objc_class_name_Object"

This is what I'm getting.

If I compile the exact same source on a Linux machine with the same
version of gcc (3.3.3) it compiles fine.

If I add -static to the gcc compile line on the OpenBSD machine, it
compiles fine as well.

Anyone know how to make gcc compile fine on OpenBSD without the -static
option for use with ObjC?

Or on the Linux version does -static just automagically get placed in
the command line?

Thanks,
-- Steve



More information about the Gcc-help mailing list