简体   繁体   English

Windows中的SDL和haskell问题

[英]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. 我之前询问过在haskell中使用哪些库来编写游戏,并得到了很好的答案让我朝着正确的方向前进。 But i cant seem to solve a problem related to sdl binding. 但我似乎无法解决与sdl绑定相关的问题。 I've been following this tutorial a haskell adventure in windows (the installation part) to make a simple sample works . 我一直在关注本教程中的windows (安装部分)中的haskell冒险,以制作简单的示例 The problem comes when i try to run the example, i keep getting this error message from console when running ghci myExample.hs: 当我尝试运行该示例时出现问题,我在运行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? 这发生在annyone吗?

我想你需要

ghci MyExample.hs -l SDLmain

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM