From: Daan L. <da...@cs...> - 2005-01-13 11:12:53
|
Hi Dmitri, First of all, read the documentation that comes with wxHaskell, in particular the "quick start" guide. > When I try to compile the program with GHC, I also get an error: > > GuiTest2.hs:1: > Failed to load interface for `Graphics.UI.WX': > Could not find interface file for `Graphics.UI.WX' > (use -v to see a list of the files searched for) As said in the guide, you need to give the "-package wx" option to ghc (and ghci too). The other problem: > Loading package readline ... linking ... > C:/ghc/ghc-6.2.2/HSreadline.o: unknown symbol `_rl_redisplay_function' > ghc.exe: unable to load package `readline' You use ghc 6.2.2, but the binary wxHaskell is for ghc 6.2.1. The new accidentally includes readline in the util package, but readline does not work on windows. So, you need to either: - easy: get ghc-6.2.1 and use wxHaskell with that - moderate: get the latest wxHaskell from cvs and build it yourself with ghc-6.2.2 (doable if you follow the build instructions *exactly*) I hope this helps, -- Daan. |