RE: Libraries needing a main and ghci

2002-12-10 Thread Simon Marlow
> 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 -packag

Libraries needing a main and ghci

2002-12-09 Thread Nicolas Oury
Hello, 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 [...] Loadin