
Thanks, its now solved, the problem was library conflicts with a cygwin workspaces working along with MinGW.. Deleted cygwin and rebuild from mingw and everything is working now. On 05/27/2012 02:12 AM, Stephen Tetley wrote:
I don't think changing the calling convention in the binding source code is a good idea.
If you can build the original C library with MinGW it should have the same calling convention as Linux. WinAPI uses stdcall and possibly DLLs compiled with VC do (tip - don't use VC DLLs if you don't have to), but otherwise you should be using ccall.
On 26 May 2012 19:48, kotshie
wrote: I changed the stdcall on the FFI's, played with the cabal file to link to different libraries, both built on VC and MinGW but still can't find the solution