[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation error/ARC link errors...
From: |
David Chisnall |
Subject: |
Re: Compilation error/ARC link errors... |
Date: |
Tue, 1 Aug 2017 10:32:51 +0100 |
On 1 Aug 2017, at 08:15, Gregory Casamento <address@hidden> wrote:
>
> Which ObjC runtime are you using?
>
> The built in one in gcc.
The missing symbols are all ones that are defined by libobjc2 and used in
NSAutoreleasePool. For example:
https://github.com/gnustep/libs-base/blob/master/Source/NSAutoreleasePool.m#L217
They are all protected by #ifdef ARC_RUNTIME:
https://github.com/gnustep/libs-base/blob/master/Source/NSAutoreleasePool.m#L178
This, in turn, is defined by this block:
https://github.com/gnustep/libs-base/blob/master/Source/NSAutoreleasePool.m#L36
#if __has_include(<objc/capabilities.h>)
# include <objc/capabilities.h>
# ifdef OBJC_ARC_AUTORELEASE_DEBUG
# include <objc/objc-arc.h>
# define ARC_RUNTIME 1
# endif
#endif
It therefore looks as if you have the headers for libobjc2 installed, but are
linking against a different runtime.
David