From: Mads L. <mad...@ya...> - 2008-11-02 09:26:35
|
Hi 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 I guess it is a problem with my underlying wxWidgets library. But compiling wxWidgets with xrc enabled did not solve my problem. I use version 2.8 of wxWidgets. Anybody has a clue to what to do about the problem? Greetings, Mads Lindstrøm |
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/ |
From: shelarcy <she...@gm...> - 2008-11-03 14:57:15
|
Jeremy, do you have another solution of this problem? You are using macro this part. And we must extend wxXmlResource_*** function when we add more control's support. So, I think we need to change or add macro instead of to use manually created fuction. Best Regards, On Mon, 03 Nov 2008 23:46:25 +0900, shelarcy <she...@gm...> wrote: > 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 -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: shelarcy <she...@gm...> - 2008-11-07 02:23:37
Attachments:
fix_xrc.dpatch
|
Hi, I made patch for this problem. Attached is a patch for that. Please test. Best Regards, On Mon, 03 Nov 2008 23:46:25 +0900, shelarcy <she...@gm...> wrote: >> 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 > > (snip) > > 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 -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Mads L. <mad...@ya...> - 2008-11-07 20:49:08
|
Hi, > Hi, > > I made patch for this problem. Attached is a patch for that. > Please test. Thank you for the patch. There was one minor issue, which I have fixed. Your and my patch has been pushed to code.haskell.org. /Mads Lindstrøm > > > Best Regards, > > On Mon, 03 Nov 2008 23:46:25 +0900, shelarcy <she...@gm...> wrote: > >> 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 > > > > (snip) > > > > 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 > > -- > shelarcy <shelarcy hotmail.co.jp> > http://page.freett.com/shelarcy/ |