[英]wxHaskell on win7, can't find wxc.dll or .so
我已經在Windows7上安裝了wxwidget和wxhaskell(使用cabal),並進行了test.hs
import Graphics.UI.WX
main :: IO ()
main = start gui
gui :: IO ()
gui = do f <- frame [text := "Hello"]
inp <- entry f []
out <- entry f []
but <- button f [ text := "Hello"
, on command := do s <- get inp text;
set out [text := "Hello "++s]
]
set f [ layout := floatCentre $ column 5
[ label "What is your name?"
, widget inp
, widget but
, widget out
] ]
然后我在winGHCi中加載並運行test.hs,這是輸出
"ghci> " :load "test.hs"
[1 of 1] Compiling Main ( test.hs, interpreted )
Ok, modules loaded: Main.
"ghci> " main
can't load .so/.DLL for: C:\Users\zhaijy\AppData\Roaming\cabal\x86_64-windows-ghc-7.10.2\wxc-0.92.1.1-2q6ESjcRWaMHNPxrdblcRv\wxc.dll (addDLL: could not load DLL)
"ghci> "
我不知道如何解決這個問題。 我需要做什么/添加/更改,以便可以加載DLL?
這是GHCi錯誤; 在GHC 7.10.3中已解決
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.