bmsherman/haskell-matlab

Windows issue linking with MATLAB API (32-bit/64-bit)

Opened this issue · 0 comments

For some reason, the package does not seem to work on Windows machines. Haskell's FFI appears to interact differently with the MATLAB API than does, for example, calling the API directly using 64-bit C code compiled with GCC. Setting some internal MATLAB types to specifically be 32-bit resolves the issue; OS-specific conditional compilation allows the package to function correctly on Windows.

I am not sure why Windows seems to misbehave in this way, and how this issue can be resolved.