Libraries needing a main and ghci

Simon Marlow simonmar@microsoft.com
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.
>=20
> So I make a C main that call  Haskell initialisation, Haskell=20
> main and =20
> call shutdownHaskell.
>=20
> It works fine with ghc.
>=20
> When linking with ghci I have an error :
>=20
>  > ghci -package SDL
> [...]
> Loading package SDL ... linking ... not found: _shutdownHaskell

Looks like a bug.  Can you use shutdownHaskellAndExit() instead?

Cheers,
	Simon