Illiax
Illiax

Reputation: 992

SDL and haskell problem in windows

I asked before what libraries to use in haskell to program a game, and got quite nice answers that got me in the right direction. But i cant seem to solve a problem related to sdl binding. I've been following this tutorial a haskell adventure in windows (the installation part) to make a simple sample works. The problem comes when i try to run the example, i keep getting this error message from console when running ghci myExample.hs:

Loading package SDL-0.6.2 ... <interactive>: SDLmain: Cannot find specified module .
Can't load .so/.DLL for: SDLmain (addDLL: could not load DLL)

I have looked in many web pages and the solution or some help does not seem to appear.

Has this happend to annyone?

Upvotes: 3

Views: 644

Answers (1)

alternative
alternative

Reputation: 13002

I think you need

ghci MyExample.hs -l SDLmain

Upvotes: 1

Related Questions