是否可以使用 GHC 在 Windows 上构建 64 位 dll? [英] Is it possible to build 64-bit dll on Windows with GHC?
问题描述
我正在寻找的是将我的 haskell 模块导出为 64 位 dll.我的设置是 64 位 Windows 7 和 Haskell Platform 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 上使用 GHC 构建 64 位 dll?
So my question is: is it possible to build 64-bit dll with GHC on Windows?
推荐答案
您可以从 GHC 官方网站的下载部分.然后,您可以cabal install haskell-platform
来构建平台通常附带的库.
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.
这篇关于是否可以使用 GHC 在 Windows 上构建 64 位 dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!