Using c2hs on Windows

316 Views Asked by At

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

There are 1 best solutions below

0
On BEST ANSWER

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.