From: Toby A. <to...@mi...> - 2005-08-13 10:29:45
|
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. Windows 98 wxWindows 2.4.2 wxHaskell 0.9.4-1 GHC 6.4.1.mumble MinGW 4.1 MSYS 1.0.10 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 field. Regards, Toby. |