"Simon" == Simon Marlow writes:
Simon> Colin Paul Adams wrote:
>>>>>>> "Ian" == Ian Lynagh writes:
>>
Ian> If you were lucky it would abort with an assertion
Ian> failure. Anyway, gdb should now have debugging symbols to
Ian> work with.
>>
>> It already did (I passed the -g option to gcc).
>>
>> I guess I will need to install the GHC source to get file
>> listings. That sounds like hard work. I think I'll wait for
>> 6.10.1 .
Simon> If you're calling a Haskell library from C, the problem
Simon> might be that you forgot hs_add_root(), or that your
Simon> hs_add_root() isn't pointing to the right module (it should
Simon> point to the module that transitively imports all the other
Simon> modules in your library). You can use multiple
Simon> hs_add_root() calls if necessary.
I'm sure I have that right. There is only one module. Unless somehow
the __GLASGOW_HASKELL__ symbol isn't getting defined for the C
compile. I'll try removing the #ifdef to see if that makes a difference.
--
Colin Adams
Preston Lancashire