Access violation in GHCI

2019-08-23 12:55发布

问题:

I have a Haskell program using the FFI to import C++ functions. I'm using Windows. When I compile to an executable or to a DLL, this works. But when I load a module in GHCI, this doesn't always work: sometimes this works, sometimes I get Access violation in generated code when reading 0000000000000000 whenever I call a function from the module (even if this function has nothing to do with the C++). Do you know how to prevent that?

标签: haskell ffi ghci