I was able to up to a certain point with the installation of corebase on Windows, today. I still have a few show stoppers, though. The list is:
(1) GNUstepBase/preface.h includes windows.h and a conflict between Window's BOOL and ObjC's BOOL. The fix is fairly simple, just add a define like David suggested. (2) objc/runtime.h does not exist on Windows. I'm not sure if this is because the windows installer is a little out of date or if this file isn't installed on Windows. In either case, I had to work around it by including ObjetiveC2/runtime.h. I would like to be able to just include objc/runtime.h like I do on Linux, though. (3) ICU is not packages with the Windows installer. I remember at one point it was, but it doesn't seem to have made it into the latest release. I get a bunch of warnings about "import" being deprecated, but the compilation still goes through. Stef On Sun, Sep 25, 2011 at 5:27 PM, Stefan Bidi <[email protected]> wrote: > I was able to track down the culprit... it's GNUstepBase/preface.h, which > includes windows.h on line 64. I'd submit a patch but I don't have -base's > source on Windows. In any case, putting the define/undef around the > windows.h include fixes the problem for me. > > Stef > > > On Sun, Sep 25, 2011 at 12:27 PM, Stefan Bidi <[email protected]>wrote: > >> I'm still getting the error. Corebase doesn't include any Windows >> headers, so it's something that is included as part of >> GNUstepBase/GSVersionMacros.h. Adding the #define around >> GNUstepBase/GSVersionMacros.h doesn't do anything for me, same error but >> replaced with WINBOOL instead of BOOL. How are other GNUstep >> libraries/applications not running into this same problem? >> >> >> On Sun, Sep 25, 2011 at 12:21 PM, David Chisnall <[email protected]>wrote: >> >>> I had the same problem with libobjc2 on Windows. I worked around it by >>> doing something like this: >>> >>> #define BOOL WINBOOL >>> #include <windows_stuff.h> >>> #undef BOOL >>> >>> And then including Objective-C headers. >>> >>> David >>> >>> On 25 Sep 2011, at 18:19, Stefan Bidi wrote: >>> >>> > I booted into Windows today and figured it would be a good idea to try >>> corebase there. I ran into some problems that I was able to fix, but I >>> don't know what to do with the set of error I'm getting now. It's about >>> BOOL being defined by both windef.h and objc/objc.h. I'm sure I'm screwing >>> something up, can anyone more familiar with Windows please shed some light? >>> I've attached the output. >>> > >>> > Stef >>> > <output>_______________________________________________ >>> > Discuss-gnustep mailing list >>> > [email protected] >>> > https://lists.gnu.org/mailman/listinfo/discuss-gnustep >>> >>> >>> -- Sent from my brain >>> >>> >> >
_______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
