[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with Windows Setup - NSCalendar specifically
From: |
Richard Frith-Macdonald |
Subject: |
Re: Help with Windows Setup - NSCalendar specifically |
Date: |
Fri, 5 Mar 2010 03:33:28 +0000 |
On 5 Mar 2010, at 00:15, kkonkle@comcast.net wrote:
> I'm new to ObjectiveC, but I'm working on an iPhone App and that's the
> language I have to use.
>
> I installed the 2 required files as per the instructions here:
> http://www.gnustep.org/experience/Windows.html
>
> This is setup and working, I can write up a simple program, compile it, and
> it executes as expected.
>
> The issue I'm having is that the installer seems to include
> "NSCalendarDate.h" instead of "NSCalendar.h". As far as I can tell
> NSCalendar is not supported on the iPhone and it's recommended I use
> NSCalendar.
>
> I found a website that had "NSCalendar.h" available for download here:
> http://www.quantum-step.com/download/sources/mySTEP/Foundation/Sources/
>
> I grabbed that include file, modified my own "Foundation.h" file to Import
> it, and recompiled. Now I am getting the following error that I can't find
> much reference to through Google.
>
> "undefined reference to '___objc_class_name_NSCalendar'"
>
> Does anyone know what I can do to get NSCalendar working and compiling on my
> windows system?
GNUstep doesn't include NSCalendar, it uses NSCalendarDate. To get NSCalendar
you need to write that class (and ideally contribute it to GNUstep so that it
will be available to everyone and will get bugfixes etc from everyone).
A basic NSCalendar implementation (supporting the Gregorian calendar) should
fairly easy to write based on the NSCalendarDate code, since NSCalendarDate
already has all the needed functionality.
> I don't know if it's helpful but it took me some doing to get my "gcc"
> compilation line working and it includes several switches that might be
> influencing things. NSString wouldn't work either until I added the "-f"
> switch, maybe there's something similar I can do for NSCalendar?
I would recommend using gnustep-make to do your building, as it will do all the
compiler switches for you.
You can then do 'make messages=yes' to get it to print out the exact command
lines it is using if you need to know all the details.