I think I fixed the problem. In wxc/src/cpp/eljpen.cpp line 159 I changed:
* _ref = NULL;
_ref = NULL;
After that wxHaskell compiled just fine. I tried a test-program and that also worked just fine.
I am trying to install wxHaskell 0.90.0.1 on Debian Wheezy.
First, I installed wxWidgets 2.9.4:
cabal install wx
Which results in the following failure:
/usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -Isrc/include -I/usr/local/include/wx-2.9 -I/usr/local/lib/wx/include/gtk3-unicode-2.9 -D__WXGTK__ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c src/cpp/eljpen.cpp -o dist/build/src/cpp/eljpen.o
src/cpp/eljpen.cpp: In function ‘void wxPen_GetStipple(void*, wxBitmap*)’:
src/cpp/eljpen.cpp:159:13: error: conversion from ‘long int’ to ‘const wxBitmap’ is ambiguous
src/cpp/eljpen.cpp:159:13: note: candidates are:
In file included from /usr/local/include/wx-2.9/wx/bitmap.h:251:0,
/usr/local/include/wx-2.9/wx/gtk/bitmap.h:83:5: note: wxBitmap::wxBitmap(GdkPixbuf*)
/usr/local/include/wx-2.9/wx/gtk/bitmap.h:73:5: note: wxBitmap::wxBitmap(const char* const*)
/usr/local/include/wx-2.9/wx/gtk/bitmap.h:64:24: error: initializing argument 1 of ‘wxBitmap& wxBitmap::operator=(const wxBitmap&)’
cabal: Error: some packages failed to install:
wx-0.90.0.1 depends on wxc-0.90.0.4 which failed to install.
wxc-0.90.0.4 failed during the building phase. The exception was:
wxcore-0.90.0.3 depends on wxc-0.90.0.4 which failed to install.
Any suggestions to how I can fix this?