Using c2hs on Windows

2019-07-23 04:52发布

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?

标签: haskell ffi c2hs
1条回答
叼着烟拽天下
2楼-- · 2019-07-23 05:23

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.

查看更多
登录 后发表回答