是否有可能生成64位DLL在Windows上使用GHC? [英] Is it possible to build 64-bit dll on Windows with GHC?

查看:106
本文介绍了是否有可能生成64位DLL在Windows上使用GHC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

这篇关于是否有可能生成64位DLL在Windows上使用GHC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆