Dyld Error Message: Library not loaded: /Users/eduardo/.cabal/lib/wxc-0.90.1.0/ghc-7.6.3/libwxc.dylib
.On Thursday, August 8, 2013 at 10:20 AM, Roman Cheplyaka wrote:
* Eduardo Sato <eduardo.sato@gmail.com> [2013-08-07 14:46:02-0300]Hello, guys. Has anybody tried to install wxhaskell on Snow Leopard?I followed these instructions: http://www.haskell.org/haskellwiki/WxHaskell/Mac , but got an error:src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs:13085:1:Unacceptable argument type in foreign declaration: CIntWhen checking declaration:foreign import ccall safe "static wxLogWindow_Create" wxLogWindow_Create:: Ptr (TWindow a)-> CWString -> CBool -> CBool -> IO (Ptr (TLogWindow ()))src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs:13085:1:Unacceptable argument type in foreign declaration: CIntWhen checking declaration:foreign import ccall safe "static wxLogWindow_Create" wxLogWindow_Create:: Ptr (TWindow a)-> CWString -> CBool -> CBool -> IO (Ptr (TLogWindow ()))Failed to install wxcore-0.90.0.3cabal: Error: some packages failed to install:wx-0.90.0.1 depends on wxcore-0.90.0.3 which failed to install.wxcore-0.90.0.3 failed during the building phase. The exception was:ExitFailure 1I'm using ghc 7.6.3. I've heard the above problems are related to GHC7.6.3 being more pedantic about FFI declarations. Is there any wayaround it?Indeed, and it has nothing to do with Snow Leopard. You should ensurethat the CInt data constructor is imported. Either patch it yourself, orhave the package maintainer to fix it.Roman