discuss-gnustep
[Top][All Lists]
Advanced

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

Re: __has_attribute error compiling PictureFrame


From: David Chisnall
Subject: Re: __has_attribute error compiling PictureFrame
Date: Wed, 31 Jul 2019 09:51:25 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

GCC doesn't support __has_attribute. In one of the headers there should be something like this:

#ifndef __has_attribute
#define __has_attribute(x)
#endif

This header is apparently not being included in NSObjCRuntime.h - I guess no one has tried building PictureFrame with gcc and a recent GNUstep...

David

On 31/07/2019 09:35, mickbert@posteo.net wrote:
Hello.
I have just downloaded gap from github [1], and I am trying to compile them on a RHEL 7, with gcc 4.8.5 20150623 (Red Hat 4.8.5-36)

When I arrive to PictureFrame, compiling the source PreferencesController.m, I got the trange error:

In file included from /usr/local/include/Foundation/NSObject.h:30:0,
                  from /usr/local/include/Foundation/FoundationErrors.h:29,
                  from /usr/local/include/Foundation/Foundation.h:33,
                  from /usr/local/include/Cocoa/Cocoa.h:33,
                  from PreferencesController.h:5,
                  from PreferencesController.m:6:
/usr/local/include/Foundation/NSObjCRuntime.h:187:20: error: missing binary operator before token "("
  #if __has_attribute(objc_designated_initializer)

"Strange" because it looks to be in a deep foundation header, and I have compiled quite a lot of program before, without any issue. Is it possible that header has never been included anywhere?

Any suggestion?

[1] https://github.com/gnustep/gap
--
Mick

_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep




reply via email to

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