Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#36 wxc/include/wrapper.h:173: error: no matching function

closed
nobody
None
5
2008-02-17
2007-11-19
Chris Karakas
No

I did:

./configure --prefix=/usr --with-opengl

checking system:
wx-config found
ghc found
ghc-pkg found
warning:
Unable to find: haddock
You won't be able to generate documentation.
You can specify the haddock executable on the command line.
For example: ./configure --haddock=/usr/local/bin/haddock

install program found

creating configuration files:
config
config/config.mk
config/wxcore.pkg
config/wx.pkg
config/wxhaskell-register.bat
config/wxhaskell-unregister.bat
config/setcd
config/macosx-install.info
config/macosx-postinstall
config/macosx-app
config/wxhaskell.spec
config/prologue.txt
config/cache.txt

configuration:
library: wxhaskell-0.9.4 (release 0)
compiler: ghc-6.4.1
wxwidgets: gtk-2.6.3
with openGL: yes
library dir: /usr/lib

done:
type 'make' to build wxhaskell.
type 'make install' to install wxhaskell.
type 'make help' to receive help on all other make targets

After typing

make

I got:

g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -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.6/wx/dataobj.h:249: error: candidates are:
wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&)
/usr/include/wx-2.6/wx/dataobj.h:203: error:
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 '
this->ELJTextValidator::buf = _txt'
/usr/include/wx-2.6/wx/string.h:627: error: candidates are: wxString&
wxString::operator=(int) <near match>
/usr/include/wx-2.6/wx/string.h:847: error: wxString&
wxString::operator=(wchar_t) <near match>
/usr/include/wx-2.6/wx/string.h:861: error: wxString&
wxString::operator=(const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:916: error: 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.6/wx/ipcbase.h:86: 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.6/wx/sckipc.h:106: error: candidates are:
wxTCPConnection::wxTCPConnection(const wxTCPConnection&)
/usr/include/wx-2.6/wx/sckipc.h:65: error:
wxTCPConnection::wxTCPConnection()
/usr/include/wx-2.6/wx/sckipc.h:64: error:
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.6/wx/string.h:644: error: candidates are:
wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx-2.6/wx/string.h:633: error:
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.6/wx/string.h:644: error: candidates are:
wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx-2.6/wx/string.h:633: error:
wxString::wxString(int) <near match>
wxc/include/wrapper.h: At global scope:
wxc/include/wrapper.h:534: error: invalid type `const char[11]' for default
argument to `const wxString&'
make: *** [out/wxc/ewxw_main.o] Error 1

I have Linux kernel 2.4.31 SMP, wxGTK-2.6.3.2-1 and ghc-6.4.1-1.

Chris Karakas
http://www.karakas-online.de

Discussion

  • Eric Kow
    Eric Kow
    2008-02-17

    • status: open --> closed
     
  • Eric Kow
    Eric Kow
    2008-02-17

    Logged In: YES
    user_id=242465
    Originator: NO

    This appears to be unicode-related. Your best bet is to try the darcs version, which does support unicode:
    darcs get http://darcs.haskell.org/wxhaskell

    Please let us know if you run into any more trouble.