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: Lars Sonchocky-Helldorf
Subject: Re: How to enable "shorthand" access element in NSArray
Date: Sun, 28 Dec 2014 22:57:30 +0100

Am 28.12.2014 um 21:21 schrieb David Chisnall:

> 
> 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.

Well, I also don't like Windows but I know how to run it in a virtual machine 
(even VirtualBox is sufficient here) when I need to. Here in Germany you can 
get a legal copy of Windows 7 Professional 64Bit for about 80 Euro. That's not 
a fortune.

just saying,

        Lars


reply via email to

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