【发布时间】:2012-03-23 22:24:04
【问题描述】:
我正在尝试让插件包在 Windows 上运行。
我有 Windows Vista 64 位。我今天安装了最新的 Haskell 平台(ghc --version 说 7.0.4)。我安装了最新的cygwin。
我运行了一个简单的示例(特别是 this one 并在修复了各种问题后(请参阅 here)我收到此错误:
Main.exe: Plug.dll: Not x86 PEi386
Main.exe: user error (Could not load module `Plug.dll')
我不知道该去哪里。
我用同样的方法编译了dll和测试代码,smae ghc:
ghc -shared -o Plug.dll Plug.hs
ghc -package ghc -o Main Main.hs
另外,我使用 InspectExe 检查,它说 Plug.dll 文件是一个 32 位 dll,它能够成功加载它。
【问题讨论】: