From: Volker W. <po...@vo...> - 2004-10-23 05:45:13
|
Hello. I've compiled and installed WxHaskell-0.8 from source, but when I try to compile one of the examples, I get: > ghc -package wx -o helloworld HelloWorld.hs ... /usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::SwapBuffers()' /usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::SetColour(char const*)' /usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::wxGLCanvas[in-charge](wxWindow*, wxGLCanvas const*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)' /usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::SetCurrent()' /usr/lib/libwxc-gtk2.4.2-0.8.so: undefined reference to `wxGLCanvas::wxGLCanvas[in-charge](wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)' collect2: ld returned 1 exit status When calling "readelf /usr/lib/libwxc-gtk2.4.2-0.8.so", the undefined symbols seem to be present in the library. I've also tried it with the prepackaged RPM, and am able to compile the program, but when I start it, I get: ./helloworld: relocation error: /usr/lib/libwxc-gtk2.4.2-0.8.so: undefined symbol: _ZN10wxGLCanvasC1EP8wxWindowiRK7wxPointRK6wxSizelRK8wxStringPiRK9wxPalette I'm using Debian, and the standard Debian packages of WxWidgets. I had installed the RPM with alien. Any idea what's wrong? Thanks, Volker -- Volker Wysk <po...@vo...> http://www.volker-wysk.de |