Ooops, hit sent too soon:

On 21/05/2019 08:26, Edwin Ancaer wrote:
In file included from ../EOControl/EOQualifier.h:36:
../EOControl/EOKeyValueArchiver.h:84:3: error: unknown type name 'NSMutableArray'
   NSMutableArray *_allUnarchivedObjects;
   ^

It looks as if EOKeyBalueArchiver.h is missing a #import <Foundation/NSArray.h>

../EOControl/EOQualifier.h:239:12: error: cannot define category for undefined class 'NSArray'
@interface NSArray (EOQualifierExtras)
            ^
/usr/local/GNUstep/System/Library/Headers/GNUstepBase/GSObjCRuntime.h:92:8: note: forward declaration of class here
@class  NSArray;
         ^
In file included from EOKeyValueQualifier.m:57:
../EOControl/EOQualifier.h:239:12: error: cannot define category for undefined class 'NSArray'
@interface NSArray (EOQualifierExtras)
            ^
/usr/local/GNUstep/System/Library/Headers/GNUstepBase/GSObjCRuntime.h:92:8: note: forward declaration of class here
@class  NSArray;
         ^

And so is EOQualifier.h. Old GNUstep code tends not to import all of Foundation.h, which also means that it will be slower to build on a modern compiler / build system that uses precompiled headers. Just sticking #import <Foundation/Foundation.h> at the top will fix most of these issues.

EOKeyComparisonQualifier.m:190:7: warning: 'sel_eq' is deprecated [-Wdeprecated-declarations]
   if (sel_eq(_selector, EOQualifierOperatorEqual) == YES)

This should be sel_isEqual. It looks as if this code hasn't been updated for at least 10 years, so getting it to build at all may be an interesting experience.

David

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to