Is it possible to build 64-bit dll on Windows with GHC?

徘徊边缘 提交于 2019-12-11 04:09:21

问题


What I am looking for is exporting my haskell module as a 64-bit dll. My setup is 64-bit Windows 7 and Haskell Platform 2013.2.0.0.

I tried building with ghc --make -static -shared -fPIC ff.hs -o ff_dll.dll which works fine except for it produces 32-bit version (I managed to call it from another app).

So my question is: is it possible to build 64-bit dll with GHC on Windows?


回答1:


You can get a 64-bit GHC from the official GHC website's download section. You can then cabal install haskell-platform to build the libraries that normally ship with the Platform.



来源:https://stackoverflow.com/questions/23244910/is-it-possible-to-build-64-bit-dll-on-windows-with-ghc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!