On Thu, 23 Oct 2008 21:59:36 +0900, shelarcy <[EMAIL PROTECTED]> wrote: > I got error when building wxc with xrc.patch on Mac OS X platform. > > g++ -c wxc/src/eljrc.cpp -o dist/wxc/eljrc.o -MD -DwxcREFUSE_MEDIACTRL > -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXMAC__ > -DwxUSE_STC=1 -DwxUSE_SVG=1 -fPIC -Iwxc/include > wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a > valid preprocessing token > wxc/src/eljrc.cpp:437:1: error: pasting "wxSizer" and "*" does not give a > valid preprocessing token > wxc/src/eljrc.cpp:438:1: error: pasting "wxBoxSizer" and "*" does not give a > valid preprocessing token > (snip) > make: *** [dist/wxc/eljrc.o] Error 1 > Build Failed. > > It seems that BUILD_XRCGETCTRL_FN macro causes problem. Does anyone knows > how to solve this problem?
I fixed problem by below way. hunk ./wxc/src/eljrc.cpp 432 - EWXWEXPORT(wx##_typ##*, wxXmlResource_Get##_typ)(wxWindow* _win, wxString* _str_id) \ + EWXWEXPORT(wx##_typ *, wxXmlResource_Get##_typ)(wxWindow* _win, wxString* _str_id) \ hunk ./wxc/src/eljrc.cpp 434 - return reinterpret_cast<wx##_typ##*>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id))); \ + return reinterpret_cast<wx##_typ *>(_win->FindWindow(wxXmlResource::GetXRCID(*_str_id))); \ After modifying this part, samples work on Mac OS X, too. -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ wxhaskell-devel mailing list wxhaskell-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel