[Haskell-cafe] compilation succeeds -- execution fails

Thomas Schilling nominolo at googlemail.com
Fri Mar 28 05:40:15 EDT 2008


Did you try removing all .hi and .o files?

On 28 mar 2008, at 10.34, Jason Dusek wrote:

>   I have a program here:
>
>     https://svn.j-s-n.org/public/haskell/cedict
>
>   currently at revision 302, which compiles okay but I can't get
>   it to work. I'm using the FFI to take a (currently small)
>   array and translate it into a Map.
>
>   It compiles fine and loads fine -- but it doesn't run fine:
>
>     GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
>     Loading package base ... linking ... done.
>     Prelude> import Data.Char.CEDICT
>     Prelude Data.Char.CEDICT> traditional 'a'
>     Loading package array-0.1.0.0 ... linking ... done.
>     Loading package containers-0.1.0.1 ... linking ... done.
>     Loading package parsec-2.1.0.0 ... linking ... done.
>     Loading package utf8-string-0.2 ... linking ... done.
>     Loading package cedict-0.1.1 ... linking ... <interactive>:
>     unknown symbol  
> `___stginit_cedictzm0zi1zi1_DataziCharziCEDICTziMatter_'
>     ghc-6.8.2: unable to load package `cedict-0.1.1'
>     Prelude Data.Char.CEDICT>
>
>   I'm on a Mac -- Leopard. A whole bunch of things *could* be
>   wrong -- I'd appreciate some help in narrowing the list.
>
> -- 
> _jsn
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list