help-gnustep
[Top][All Lists]
Advanced

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

Re: Link to C++ library


From: Adam Fedor
Subject: Re: Link to C++ library
Date: Tue, 10 Sep 2002 15:41:22 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020610

Yen-Ju Chen wrote:

 Thanx a lot. It helps.
 But can I directly link Objective-C to C++ throught
 the C interface which the C++ library offers ?

 After apply the CC=g++, the error message becomes

 .../libgnustep-base.so: undefined reference to '__objc_msg_forward'
 .../libgnustep-base.so: undefined reference to '__objc_msg_thread_add'
 .../libgnustep-base.so: undefined reference to '__objc_msg_thread_remove'


This seems to indicate that the linker is finding an old version of the Objective-C runtime (e.g. gcc 2.x version) with a gnustep-base library that expected a newer version (e.g. gnustep-objc). Maybe you should remove libobjc.a in the gcc-lib directory.




--
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                      | know how I hate the stuff.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]