Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#39 wxHaskell does not build...

closed
nobody
None
5
2008-03-06
2008-03-06
Yann Golanski
No

Downloaded version wxhaskell-0.9.4 but I cannot compile it.

The error:

; make
g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -I/usr/lib/wx/include/gtk2-unicode-debug-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXDEBUG__ -D__WXGTK__ -pthread -Iwxc/include
In file included from wxc/src/ewxw_main.cpp:1:
wxc/include/wrapper.h: In constructor `ELJDragDataObject::ELJDragDataObject(void*, char*, int (*)(void*), int (*)(void*, void*), int (*)(void*, int, const void*))':
wxc/include/wrapper.h:173: error: no matching function for call to `wxDataObjectSimple::wxDataObjectSimple(char*&)'
/usr/include/wx-2.8/wx/dataobj.h:249: note: candidates are: wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&)
/usr/include/wx-2.8/wx/dataobj.h:203: note: wxDataObjectSimple::wxDataObjectSimple(const wxDataFormat&)
wxc/include/wrapper.h: In constructor `ELJTextValidator::ELJTextValidator(void*, void*, void*, long int)':
wxc/include/wrapper.h:257: error: ambiguous overload for 'operator=' in '((ELJTextValidator*)this)->ELJTextValidator::buf = (const char*)_txt'
/usr/include/wx-2.8/wx/string.h:676: note: candidates are: wxString& wxString::operator=(int) <near match>
/usr/include/wx-2.8/wx/string.h:957: note: wxString& wxString::operator=(wxChar) <near match>
/usr/include/wx-2.8/wx/string.h:971: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.8/wx/string.h:1026: note: wxString& wxString::operator=(const wxString&) <near match>
wxc/include/wrapper.h: At global scope:
wxc/include/wrapper.h:331: error: conflicting return type specified for `virtual char* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)'
/usr/include/wx-2.8/wx/ipcbase.h:82: error: overriding `virtual wxChar* wxConnectionBase::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)'
wxc/include/wrapper.h: In constructor `ELJConnection::ELJConnection(char*, int)':
wxc/include/wrapper.h:301: error: no matching function for call to `wxTCPConnection::wxTCPConnection(char*&, int&)'
/usr/include/wx-2.8/wx/sckipc.h:99: note: candidates are: wxTCPConnection::wxTCPConnection(const wxTCPConnection&)
/usr/include/wx-2.8/wx/sckipc.h:61: note: wxTCPConnection::wxTCPConnection()
/usr/include/wx-2.8/wx/sckipc.h:60: note: wxTCPConnection::wxTCPConnection(wxChar*, int)
wxc/include/wrapper.h: In constructor `ELJPrintout::ELJPrintout(void*, void*, void*, void*, void*, void*, void*, void*, void*, void*)':
wxc/include/wrapper.h:413: error: conversion from `char*' to `const wxString' is ambiguous
/usr/include/wx-2.8/wx/string.h:693: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.8/wx/string.h:682: note: wxString::wxString(int) <near match>
wxc/include/wrapper.h: In constructor `ELJPreviewFrame::ELJPreviewFrame(void*, void*, void*, void*, void*, void*, void*, int, int, int, int, int)':
wxc/include/wrapper.h:475: error: conversion from `char*' to `const wxString' is ambiguous
/usr/include/wx-2.8/wx/string.h:693: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.8/wx/string.h:682: note: wxString::wxString(int) <near match>
make: *** [out/wxc/ewxw_main.o] Error 1

My system:

; wx-config --version-full
2.8.4.0
; ghc -V
The Glorious Glasgow Haskell Compilation System, version 6.8.2
; uname -a
Linux styx 2.6.18.8 #2 SMP Thu Mar 15 11:37:13 GMT 2007 i686 i686 i386 GNU/Linux

Discussion

  • Eric Kow
    Eric Kow
    2008-03-06

    Logged In: YES
    user_id=242465
    Originator: NO

    Yann,

    Many thanks for the bug report. Please try with the darcs version of wxhaskell

    darcs get http://darcs.haskell.org/wxhaskell

    and with wxWidgets 2.6.

    Also, we are preparing a new release candidate, and would be very interested in testers!

     
  • Eric Kow
    Eric Kow
    2008-03-06

    • status: open --> closed
     
  • Yann Golanski
    Yann Golanski
    2008-03-06

    Logged In: YES
    user_id=457259
    Originator: YES

    Worked.

    Many thanks indeed.