[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Categories and selector
From: |
Nicola Pero |
Subject: |
Re: Categories and selector |
Date: |
Mon, 25 Nov 2002 11:19:13 +0000 (GMT) |
> > It feels like a runtime problem: Did you load the category? Did you
> > link-edited it with the program? I mean, an object file compiled from
> > a @implemenation MyClass(MyCategory)...
>
> The category extends a class within the same source tree, which is
> built and linked at the same time. BTW, I compiled GNUstep-base 1.4.1
> this afternoon on Solaris, and then compiled my program - it ran
> without any problem. After this I installed the same version of
> GNUstep-base on my Debian Linux machine, compiled my program, but sadly
> still got the NSInvalidArgumentException.
>
> The only reason I see for that is that the category is not added to the
> class object at runtime... I wonder why this program works on MacOSX
> and GNUStep/Solaris, but not on GNUstep/Linux ?
It sounds strange. Can you provide a self-contained, but short/simple,
testcase, which I can use to reproduce the problem on my GNU/Linux ?
Which version of gcc/libobjc are you using ?