Libraries needing a main and ghci

Nicolas Oury
Mon, 9 Dec 2002 22:49:58 +0100


I am doing a small binding to SDL lib. It  needs on some platforms to 
have a C main function.

So I make a C main that call  Haskell initialisation, Haskell main and  
call shutdownHaskell.

It works fine with ghc.

When linking with ghci I have an error :

 > ghci -package SDL
Loading package SDL ... linking ... not found: _shutdownHaskell

What should I do?

Thanks a lot,


PS:  I use ghc 5.04.2