From: shelarcy <she...@gm...> - 2007-09-16 04:29:15
|
Hi Mads, On Sun, 16 Sep 2007 00:42:17 +0900, Mads Lindstrøm <mad...@ya...> wrote: > I tried putting "#ifndef __WXGTK__" around references to > Cursor_CreateLoad before doing configure, make, ... I created the > #ifndef in the file /wxc/include/ewxw/wxc_glue.h and in the > file /wxc/src/ewxw/eljcursor.cpp. cursorCreateFromFile requires wxc's Cursor_CreateFromImage functions. http://darcs.haskell.org/wxhaskell/wxcore/src/Graphics/UI/WXCore/Image.hs And wxhaskell doesn't have statically information now. http://www.mail-archive.com/wxh...@li.../msg00196.html So I think below change is better than hiding functions and references. EWXWEXPORT(void*, Cursor_CreateFromImage)(wxImage* image) { #ifndef __WXGTK__ return (void*) new wxCursor(*image); #else return NULL; #endif } This solution is usually used when wxc requires compilation flag. http://darcs.haskell.org/wxhaskell/wxc/src/glcanvas.cpp > But the Cursor_CreateLoad function still gets automatically created in > the file > wxcore/src/Graphics/UI/WXCore/WxcClassesAL.hs . It seems that the > "#ifndef __WXGTK__" is simply ignored by the command > out/wxdirect/wxdirect . Is this correct? > > If it is correct, how should I then make conditional compilation? Hmm ... How about clean your wxhaskell's working directory. It seems that your wxhaskell uses old wxcore/src/Graphics/UI/WXCore/WxcClassesAL.hs. -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |