Using c2hs on Windows

2019-07-23 04:22发布

问题:

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?

回答1:

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.



标签: haskell ffi c2hs