[Haskell-beginners] Linking C library with haskell in Windows
kotshie
kotshie at gmail.com
Sun May 27 21:28:58 CEST 2012
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<kotshie at gmail.com> 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
More information about the Beginners
mailing list