From: shelarcy <she...@gm...> - 2008-11-03 14:46:40
|
Hi, On Sun, 02 Nov 2008 18:11:29 +0900, Mads Lindstrøm <mad...@ya...> wrote: > After the XRC additions (the "Add XRC support" path) I have not been > able to compile the test programs, and I guess any other programs > either. > > While wxHaskell compiles and installs, I get the following error when > trying to compile one of the example programs: > >> make all > ghc -package wx -o BouncingBalls BouncingBalls.hs > /home/ghctest/lib/libwxcore2.a(WxcClassesMZ.o): In function `s1iiL_info': > ghc31980_0.hc:(.text+0x12d84d): undefined reference to `wxXmlResource_GetStyledTextCtrl' > collect2: ld returned 1 exit status > make: *** [BouncingBalls] Error 1 It seems that wxdirect generates undefined reference to wxXmlResource_GetStyledTextCtrl. Problem is come from eljrc.cpp's below part. #ifdef wxUSE_STC BUILD_XRCGETCTRL_FN(StyledTextCtrl) #endif > Anybody has a clue to what to do about the problem? So, we can fix this problem by following change. #ifdef wxUSE_STC BUILD_XRCGETCTRL_FN(StyledTextCtrl) #else EWXWEXPORT(void*, wxXmlResource_StyledTextCtrl)(wxWindow* _win, wxString* _str_id) { return NULL; } #endif http://www.mail-archive.com/wxh...@li.../msg00273.html Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |