Libraries needing a main and ghci
Tue, 10 Dec 2002 10:47:15 -0000
> I am doing a small binding to SDL lib. It needs on some platforms to=20
> have a C main function.
> So I make a C main that call Haskell initialisation, Haskell=20
> main and =20
> 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
Looks like a bug. Can you use shutdownHaskellAndExit() instead?