On 5 Mar 2010, at 14:58, Niels Grewe wrote:

> On Fri, Mar 05, 2010 at 12:32:25PM +0100, Quentin Mathé wrote:
>> I can reproduce the problem, but I don't understand what's going on :-(
>> In my case, I'm using GCC 4.3.3 + libobjc1 + today GNUstep svn trunk.
>> David, any idea?
> 
> So can I (clang + libobjc2 + GNUstep trunk). But I'm equally puzzled by
> this. At least, clang produces slightly more decipherable error messages:
> 
>> NSObject+Prototypes.m:343:31: error: member reference type 'Method_t' (aka 
>> 'struct objc_method *') is a pointer; maybe you meant to use '->'? 
>>       defaultMethods.method_list[0].method_name = sel;
>>       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
> (And so on…)
> 
> Oddly the defaultMethods structure doesn't declare method_list as
> Method_t but as Method. Also note that the assignment of the method_list
> members doesn't fail for the defaultClassMethods global.
> *scratches head*

This is part of the fallout from GNUstep's change to using the new ObjC runtime 
APIs.  I think the quick fix is to #define the thing from runtime.h that tells 
it to use the legacy APIs before the first #include / #import in that file.  
The better fix is to replace all of that code with stuff that uses the new APIs.

David

-- Sent from my Apple II


_______________________________________________
Etoile-dev mailing list
Etoile-dev@gna.org
https://mail.gna.org/listinfo/etoile-dev

Reply via email to