OpenBSD vs Objective-C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux