RE: Libraries needing a main and ghci

10 Dec
2002
10 Dec
'02
5:47 a.m.
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
Looks like a bug. Can you use shutdownHaskellAndExit() instead? Cheers, Simon
8198
Age (days ago)
8198
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow