public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* OpenBSD vs Objective-C
@ 2004-04-13 18:14 Steve Mertz
  2004-04-13 21:45 ` llewelly
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Mertz @ 2004-04-13 18:14 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: OpenBSD vs Objective-C
  2004-04-13 18:14 OpenBSD vs Objective-C Steve Mertz
@ 2004-04-13 21:45 ` llewelly
  0 siblings, 0 replies; 2+ messages in thread
From: llewelly @ 2004-04-13 21:45 UTC (permalink / raw)
  To: Steve Mertz; +Cc: gcc-help

Steve Mertz <steve@dragon-ware.com> writes:

> 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.
[snip]

Since ld is reporting the error, I suggest you try asking the
    maintainers of your ld.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-13 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-13 18:14 OpenBSD vs Objective-C Steve Mertz
2004-04-13 21:45 ` llewelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).