是否有可能生成64位DLL在Windows上使用GHC?有可能、DLL、Windows、GHC

2023-09-08 01:13:09 作者:素衣风尘叹

我要找的是出口我的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.