discuss-gnustep
[Top][All Lists]
Advanced

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

Re: How to enable "shorthand" access element in NSArray


From: David Chisnall
Subject: Re: How to enable "shorthand" access element in NSArray
Date: Sun, 28 Dec 2014 21:21:06 +0100

On 28 Dec 2014, at 20:59, Rael Bauer <support@bauerapps.com> wrote:

> I was not aware of whether I was or wasn't (I am very new to 
> gnustep/objective-C). After some research it seems that I was not. (just 
> using the default). If I add this line to the GNUmakefile:
> 
> test_OBJCFLAGS += -fobjc-nonfragile-abi
> 
> Then it does compile ok (there is a warning though), however then the linker 
> gives a list of errors
> 
> ./obj/test.obj/test.m.o: In function `main':
> C:/GNUstep/msys/1.0/home/User/Projects/Test/test.m:7: undefined reference to 
> `objc_msgSend'
> C:/GNUstep/msys/1.0/home/User/Projects/Test/test.m:8: undefined reference to 
> `objc_msgSend'
> C:/GNUstep/msys/1.0/home/User/Projects/Test/test.m:13: undefined reference to 
> `objc_msgSend'
> C:/GNUstep/msys/1.0/home/User/Projects/Test/test.m:15: undefined reference to 
> `objc_msgSend'
> collect2: ld returned 1 exit status
> 
> Do you have any advice on how to fix this error?

This looks like it's not linking against the correct runtime.  You must be 
using the GNUstep runtime ('libobjc2') not the GCC runtime.  There's another 
thread for people trying to get this working with Windows, but as I don't have 
a Windows machine I've no idea of the status.

David




reply via email to

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