Hello, I am trying to get the latest wxhaskell from the darcs repository (as of today, two hours ago max) to work with GHC 6.10.1 and wxwidgets-2.8.7.1-0ubuntu3. Everything compiles fine, but when I try to compile the hello world example from the wiki I get the following linking errors:
bash$ ghc --make -package wx wxhaskelltest.hs Linking wxhaskelltest ... /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBitmap::CreateFromXpm(char const**)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxWindow::IsOwnGtkWindow(_GdkDrawable*)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGREY_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::CalcScrollInc(wxScrollWinEvent&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxAppConsole::CreateLogTarget()' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxMEDIUM_GREY_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCursor::operator=(wxCursor const&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCheckListBox::Check(int, bool)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBLACK' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::Scroll(int, int)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxWHITE_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxPanel::SetDefaultItem(wxWindow*)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxAppConsole::OnExceptionInMainLoop()' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxHtmlWindow::SetFonts(wxString, wxString, int const*)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCROSS_CURSOR' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxMEDIUM_GREY_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCursor::Ok() const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGetColourFromUser(wxWindow*, wxColour const&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxZipFSHandler::wxZipFSHandler()' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxColour::wxColour(unsigned char, unsigned char, unsigned char)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxFileConfig::wxFileConfig(wxInputStream&, wxMBConv&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxWHITE_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxNORMAL_FONT' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxFont::Init()' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxLIGHT_GREY_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxItemContainer::GetClientData(int) const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxTRANSPARENT_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxButton::IsOwnGtkWindow(_GdkDrawable*)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::DoGetBestSize() const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::Init()' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGREEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::SetScrollbars(int, int, int, int, int, int, bool)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxItemContainer::SetClientData(int, void*)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBLACK_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::DoPrepareDC(wxDC&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGREEN_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::SetTargetWindow(wxWindow*, bool)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::DoCalcScrolledPosition(int, int, int*, int*) const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBLUE' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxString::mb_str(wxMBConv&) const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGREY_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxTextInputStream::wxTextInputStream(wxInputStream&, wxString const&, wxMBConv&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxTRANSPARENT_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxSWISS_FONT' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBLACK_DASHED_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxLIGHT_GREY' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCYAN_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGetFontFromUser(wxWindow*, wxFont const&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxRED_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxRED' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxColour::Set(unsigned char, unsigned char, unsigned char)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGenericTreeCtrl::Edit(wxTreeItemId const&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxPanel::GetDefaultItem() const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::DoCalcUnscrolledPosition(int, int, int*, int*) const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxColour::InitFromName(wxString const&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBLUE_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBeginBusyCursor(wxCursor*)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::GetTargetWindow() const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxPanel::SetTmpDefaultItem(wxWindow*)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxRED_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCYAN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxSTANDARD_CURSOR' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::EnableScrolling(bool, bool)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxITALIC_FONT' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGREEN_BRUSH' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCheckListBox::IsChecked(int) const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxEVT_POWER' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxTextOutputStream::wxTextOutputStream(wxOutputStream&, wxEOL, wxMBConv&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxAppConsole::CreateMessageOutput()' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::SetScrollPos(int, int, bool)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxCYAN_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::GetScrollPixelsPerUnit(int*, int*) const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::AdjustScrollbars()' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxWindowBase::SetBestFittingSize(wxSize const&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxLIGHT_GREY_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxBLACK_PEN' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxHOURGLASS_CURSOR' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGenericTreeCtrl::HitTest(wxPoint const&, int&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxPathList::FindAbsoluteValidPath(wxString const&)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::GetViewStart(int*, int*) const' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxScrolledWindow::SetScrollRate(int, int)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxSMALL_FONT' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxGenericTreeCtrl::SetSpacing(unsigned int)' /usr/lib/libwxc-gtk2.8.7-0.11.0.so: undefined reference to `wxWHITE' collect2: ld returned 1 exit status Something wrong with my install or something wrong with the latest version on the repository? Kind regards and hopefully someone can fix it, ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ wxhaskell-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxhaskell-users
