2011-07-14 13 views
14

ページ:(http://en.wikibooks.org/wiki/Haskell/GUI)では、wxコードを実行するためにwxをインストールし、次に "wxHaskellをGHCで登録する" - しかし、私はwxHaskell(http://wxhaskell.sourceforge.net/download.html)のバイナリインストーラは自動的にそれを行うと思いますか?問題の実行wxHaskell(Windows)

wx-config、wxPack、wxHaskellをインストールしました。そして、wxとwxcoreのcabalインストールを行いました。私はLeksahからいくつかのwxデモを実行していますが、これは大部分はうまくいくようですが、いくつかの奇妙なエラーがありました(wxhaskell-labels-cant-display-full-textという解決策が見つかりました)。 GHCiからのもの。

は、私は彼らの簡単なデモを実行しようとすると、エラー:

D:\csPlangs\Haskell\play>ghci -package wx wxGui1.hs 
GHCi, version 7.0.3: http://www.haskell.org/ghc/ :? for help 
Loading package ghc-prim ... linking ... done. 
Loading package integer-gmp ... linking ... done. 
Loading package base ... linking ... done. 
Loading package array-0.3.0.2 ... linking ... done. 
Loading package stm-2.2.0.1 ... linking ... done. 
Loading package bytestring-0.9.1.10 ... linking ... done. 
Loading package containers-0.4.0.0 ... linking ... done. 
Loading package Win32-2.2.0.1 ... linking ... done. 
Loading package filepath-1.2.0.0 ... linking ... done. 
Loading package old-locale-1.0.0.2 ... linking ... done. 
Loading package old-time-1.0.0.6 ... linking ... done. 
Loading package directory-1.1.0.0 ... linking ... done. 
Loading package transformers-0.2.2.0 ... linking ... done. 
Loading package mtl-2.0.1.0 ... linking ... done. 
Loading package parsec-3.1.1 ... linking ... done. 
Loading package time-1.2.0.3 ... linking ... done. 
Loading package wxdirect-0.12.1.4 ... linking ... done. 
Loading package wxcore-0.12.1.7 ... ghc.exe: stdc++: The specified module could 
not be found. 
<command line>: can't load .so/.DLL for: stdc++ (addDLL: could not load DLL) 

も[面白い]エラー:

の組み合わせの既知の問題のように見える
*Main> q 

<interactive>:1:1: Not in scope: `q' 
*Main> 
ghc.exe: panic! (the 'impossible' happened) 
    (GHC version 7.0.3 for i386-unknown-mingw32): 
     thread blocked indefinitely in an MVar operation 

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug 
+1

チケットがありますhttp://hackage.haskell.org/trac/ghc/ticket/5289 これはLinux関連としてマークされていますが、より一般的になります – Yuras

答えて

2

wxHaskell、GHCi、およびWindows。からhttp://www.haskell.org/haskellwiki/WxHaskell/Quick_start

On Windows 7, ghci will complain "can't load .so/.DLL for: std c++ ...". But ghc --make Hello.hs; Hello.exe on the command line works well.

コードをコンパイルすることができます。インタプリタで実行することはできません。

関連する問題