[英]Is it possible to build 64-bit dll on Windows with GHC?
What I am looking for is exporting my haskell module as a 64-bit dll. 我正在寻找的是将haskell模块导出为64位dll。 My setup is 64-bit Windows 7 and Haskell Platform 2013.2.0.0.
我的设置是64位Windows 7和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). 我尝试使用
ghc --make -static -shared -fPIC ff.hs -o ff_dll.dll
,除了可以生成32位版本(我设法从另一个应用程序调用它)之外,该方法工作正常。
So my question is: is it possible to build 64-bit dll with GHC on Windows? 所以我的问题是:是否可以在Windows上使用GHC构建64位dll?
You can get a 64-bit GHC from the official GHC website's download section . 您可以从GHC 官方网站的下载部分获得64位GHC。 You can then
cabal install haskell-platform
to build the libraries that normally ship with the Platform. 然后,您可以
cabal install haskell-platform
以构建通常随cabal install haskell-platform
提供的库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.