[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _c_GSFFCallInvocation__load segfault
From: |
Adam Fedor |
Subject: |
Re: _c_GSFFCallInvocation__load segfault |
Date: |
Mon, 15 Oct 2001 08:56:21 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.4) Gecko/20010915 |
Ildar Mulyukov wrote:
This is actually not the problem of GCC's libobjc. In fact
gnustep-libobjc does not export all needed symbols either (e.g.
__objc_msg_forward). But this problem can be fixed very simply - just by
adding symbols into libobjc.def file (again in
Well it does it in a different way:
objc-api.h: objc_EXPORT IMP (*__objc_msg_forward)(SEL);
and objc_EXPORT is defined in objc-decls.h as
# define objc_EXPORT __declspec(dllexport)
(as long as you define BUILD_libobjc_DLL on the compile line)
which should do the same thing as adding it to the defs file.
). I tried also gcc-2.95.3+gnustep-libobjc pair with the same result. I
> found the real problem. Look at that simple code:
> *****
> extern void* (*__objc_msg_forward)(void*);
>
> main() {
> void* p;
> p = __objc_msg_forward;
> __objc_msg_forward = 0; }
> *****
Can you try instead:
extern __declspec(dllimport) IMP (*__objc_msg_forward)(SEL);
???
--
Adam Fedor, Digital Optics | Fudd's law of opposition: Push
fedor@doc.com http://www.doc.com | something hard enough, and it
fedor@gnu.org http://www.gnustep.org | will fall over.