我要找的是出口我的Haskell模块作为64位DLL。我的设置是64位的Windows 7和Haskell平台2013.2.0.0。
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.
我试图建设有 GHC --make -static -shared -fPIC ff.hs -o ff_dll.dll
工作正常,除了它产生的32位版本(我设法从另一个应用程序调用它)。
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).
所以我的问题是:是否有可能在Windows上生成64位DLL与GHC
So my question is: is it possible to build 64-bit dll with GHC on Windows?
您可以从的官方GHC网站的下载部分。然后,您可以小集团安装哈斯克尔平台
来建立一个正常的平台船库。
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.