Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-30 Thread Jason Dusek
Thanks for your answers, everybody. -- _jsn ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-30 Thread Jonathan Cast
On 29 Mar 2008, at 10:21 PM, Jason Dusek wrote: Stefan O'Rear <[EMAIL PROTECTED]> wrote: The only type that you are allowed to assume corresponds to a C int is CInt, in the Foreign.C.Types module. This probably isn't the problem, but it could make problems of its own on a 64-bit or other

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-30 Thread Claude Heiland-Allen
Jason Dusek wrote: Stefan O'Rear <[EMAIL PROTECTED]> wrote: The only type that you are allowed to assume corresponds to a C int is CInt, in the Foreign.C.Types module. This probably isn't the problem, but it could make problems of its own on a 64-bit or otherwise weird system. So say I

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-30 Thread Stefan O'Rear
On Sat, Mar 29, 2008 at 10:21:32PM -0700, Jason Dusek wrote: > Stefan O'Rear <[EMAIL PROTECTED]> wrote: > > The only type that you are allowed to assume corresponds to a C int is > > CInt, in the Foreign.C.Types module. This probably isn't the problem, > > but it could make problems of its own

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-30 Thread Jason Dusek
Stefan O'Rear <[EMAIL PROTECTED]> wrote: > The only type that you are allowed to assume corresponds to a C int is > CInt, in the Foreign.C.Types module. This probably isn't the problem, > but it could make problems of its own on a 64-bit or otherwise weird > system. So say I turn everything

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-30 Thread Jason Dusek
Bertram Felgenhauer <[EMAIL PROTECTED]> wrote: > Jason Dusek wrote: > > It compiles fine and loads fine -- but it doesn't run fine: > > unknown symbol `___stginit_cedictzm0zi1zi1_DataziCharziCEDICTziMatter_' > > This is a cabal pitfall. Thank you -- this tip saved my bacon. -- _jsn __

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-29 Thread Stefan O'Rear
On Fri, Mar 28, 2008 at 11:33:52AM -0700, Jason Dusek wrote: > Thomas Schilling <[EMAIL PROTECTED]> wrote: > > Did you try removing all .hi and .o files? > > Yes. I tried it again this morning, and I've got the same > error -- same unknown symbol, &c. > > I don't have trouble with most Hask

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-29 Thread Bertram Felgenhauer
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 l

Re: What Does This Message Mean? (Re: [Haskell-cafe] compilation succeeds -- execution fails)

2008-03-28 Thread Don Stewart
jason.dusek: > The message > > unknown symbol `___stginit_cedictzm0zi1zi1_DataziCharziCEDICTziMatter_' > > says that it can't find the initializer for` > Data.Char.CEDICT.Matter` in `cedict-0.1.1` (this is > 'z-encoding', if I remember correctly). So, the odd thing is, > that is not

What Does This Message Mean? (Re: [Haskell-cafe] compilation succeeds -- execution fails)

2008-03-28 Thread Jason Dusek
The message unknown symbol `___stginit_cedictzm0zi1zi1_DataziCharziCEDICTziMatter_' says that it can't find the initializer for` Data.Char.CEDICT.Matter` in `cedict-0.1.1` (this is 'z-encoding', if I remember correctly). So, the odd thing is, that is not the part with the C FFI stuf

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-28 Thread Jason Dusek
Thomas Schilling <[EMAIL PROTECTED]> wrote: > Did you try removing all .hi and .o files? Yes. I tried it again this morning, and I've got the same error -- same unknown symbol, &c. I don't have trouble with most Haskell programs on my Mac, so I assume it's the way I'm connecting to C that

Re: [Haskell-cafe] compilation succeeds -- execution fails

2008-03-28 Thread Thomas Schilling
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

[Haskell-cafe] compilation succeeds -- execution fails

2008-03-28 Thread Jason Dusek
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: