From: shelarcy <she...@gm...> - 2008-10-23 14:44:10
|
On Thu, 23 Oct 2008 21:59:36 +0900, shelarcy <she...@gm...> 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/ |