Re: Linking to Haskell code from an external program

2008-11-26 Thread Colin Paul Adams
> "Jason" == Jason Dusek <[EMAIL PROTECTED]> writes: Jason> Colin Paul Adams <[EMAIL PROTECTED]> wrote: >> I've managed to solve it this morning. It was the way I was >> setting up argc and argv (badly) for the call to hs_init. >> Doing it properly means there are no longer any

Re: Linking to Haskell code from an external program

2008-11-26 Thread Jason Dusek
Colin Paul Adams <[EMAIL PROTECTED]> wrote: > I've managed to solve it this morning. It was the way I was > setting up argc and argv (badly) for the call to hs_init. > Doing it properly means there are no longer any crashes with > either Eiffel compliler. What is the "bad" way to set them up? -

Re: Linking to Haskell code from an external program

2008-11-25 Thread Colin Paul Adams
> "Simon" == Simon Marlow <[EMAIL PROTECTED]> writes: >> Links now, but I'm still getting the crash in the garbage >> collector. :-( Simon> Perhaps try reducing the example until the problem goes Simon> away, so we can see at which stage it gets introduced? Or Simon> can

Re: Linking to Haskell code from an external program

2008-11-25 Thread Simon Marlow
Colin Paul Adams wrote: "Simon" == Simon Marlow <[EMAIL PROTECTED]> writes: Simon> Colin Paul Adams wrote: >>> "Simon" == Simon Peyton-Jones <[EMAIL PROTECTED]> >>> writes: >> Simon> It looks as if you are somehow failing to link your binary Simon> with package

Re: Linking to Haskell code from an external program

2008-11-24 Thread Colin Paul Adams
> "Simon" == Simon Marlow <[EMAIL PROTECTED]> writes: Simon> Colin Paul Adams wrote: >>> "Simon" == Simon Peyton-Jones <[EMAIL PROTECTED]> >>> writes: >> Simon> It looks as if you are somehow failing to link your binary Simon> with package 'base'. (Are you usin

Re: Linking to Haskell code from an external program

2008-11-24 Thread Simon Marlow
Colin Paul Adams wrote: "Simon" == Simon Peyton-Jones <[EMAIL PROTECTED]> writes: Simon> It looks as if you are somehow failing to link your binary Simon> with package 'base'. (Are you using 'ghc' as your linker; Simon> you should be.) But others are better than I at this kind

Re: Linking to Haskell code from an external program

2008-11-24 Thread Colin Paul Adams
> "Simon" == Simon Peyton-Jones <[EMAIL PROTECTED]> writes: Simon> It looks as if you are somehow failing to link your binary Simon> with package 'base'. (Are you using 'ghc' as your linker; Simon> you should be.) But others are better than I at this kind Simon> of stuff. I h

RE: Linking to Haskell code from an external program

2008-11-24 Thread Simon Peyton-Jones
kell-users- | [EMAIL PROTECTED] On Behalf Of Colin Paul Adams | Sent: 23 November 2008 15:20 | To: Simon Marlow | Cc: glasgow-haskell-users@haskell.org | Subject: Re: Linking to Haskell code from an external program | | >>>>> "Colin" == Colin Paul Adams <[EMAIL PROTECTED]>

Re: Linking to Haskell code from an external program

2008-11-23 Thread Colin Paul Adams
> "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes: > "Simon" == Simon Marlow <[EMAIL PROTECTED]> writes: Colin> I then attempted to move it into Eiffel. I can compile the Colin> C code OK, but I'm running into problems with linking. >>> Colin> I solved most of the p

Re: Linking to Haskell code from an external program

2008-11-23 Thread Colin Paul Adams
> "Simon" == Simon Marlow <[EMAIL PROTECTED]> writes: Colin> I then attempted to move it into Eiffel. I can compile the Colin> C code OK, but I'm running into problems with linking. >> Colin> I solved most of the problems by adding the -v flag to the Colin> call to ghc whi

Re: Linking to Haskell code from an external program

2008-11-17 Thread Simon Marlow
Colin Paul Adams wrote: Embarassing - I simply forgot to include Fib.o in the link. So it links now (program crashes, but I can try to sort that out). I'm still intereted in knowing how to automatically get the list of required libraries. "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes:

Re: Linking to Haskell code from an external program

2008-11-15 Thread Colin Paul Adams
Embarassing - I simply forgot to include Fib.o in the link. So it links now (program crashes, but I can try to sort that out). I'm still intereted in knowing how to automatically get the list of required libraries. > "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes: Colin> I am tryi