For me, at least, running a wxHaskell application that has a toolbar
on windows results in a dialog complaining that it can't find the
resource wxBITMAP_STD_COLOURS. The app then appears to function
correctly, but the dialog is annoying.
The problem seems to be that the standard wxWindows resources are not
being linked to the application. I see there is a wxc.rc file in the
wxHaskell source that includes the standard wx.rc resource file, but
that this is never compiled or linked.
Attached is a patch to 0.9.4-1 that compiles wxc.rc and arranges for
it to be linked to wxHaskell executables (if the toolkit is msw).
This is achieved by compiling wxc.rc with windres to wxc-rc.o,
installing this object file into the lib dir and adding it to the
extra-ld-opts field of the package description (which needs to be
called ld-options for GHC 6.4 and greater).
It doesn't seem to work to include the wxc-rc.o file in either the DLL
or the .a for some reason, which is why I added it to the ld-options
Get latest updates about Open Source Projects, Conferences and News.