在Windows上使用c2hs [英] Using c2hs on Windows

查看:96
本文介绍了在Windows上使用c2hs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows上使用libxml-enumerator软件包,(最终)需要使用c2hs.尝试构建相关的程序包时,我从c2hs中收到了看似臭名昭著的不存在"错误.这似乎与没有安装GCC有关,但是似乎列表很奇怪,因为我已经将Haskell的gcc.exe副本添加到了我的路径中.

I'm trying to use the libxml-enumerator package on Windows, which (ultimately) needs to use c2hs. When trying to build the relevant package, I get the seemingly infamous "does not exist" error from c2hs. This seems to be related to not having GCC installed, but this seems a list strange, since I've added Haskell's copy of gcc.exe to my path.

有人知道如何克服此错误吗?

Does anyone know how to defeat this bug?

推荐答案

答案是自行安装MinGW,而不是依赖于GHC附带的MinGW.希望这对以后的人有所帮助.

Turns out the answer is to install MinGW by itself and not rely on the MinGW included with GHC. Hope this helps someone in the future.

这篇关于在Windows上使用c2hs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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