[Haskell-cafe] DLL on Windows

Neil Mitchell ndmitchell at gmail.com
Tue Feb 16 11:37:41 EST 2010


Hi Serguey,

I notice you are using GHC 6.10.3, I suggest you try 6.10.4 which I
know does work.

I rewrote that section of the manual recently. I haven't had time to
merge it back in, but it might give you more help:

http://neilmitchell.blogspot.com/2009/11/haskell-dlls-on-windows.html

Thanks, Neil

On Tue, Feb 16, 2010 at 2:33 PM, Serguey Zefirov <sergueyz at gmail.com> wrote:
> I tried the way described in
> http://www.haskell.org/ghc/docs/latest/html/users_guide/win32-dlls.html
> and i got this error message:
>
> --------------------------------------------------------------------------------------------
> ghc -shared -o test.dll --make test.hs
> [1 of 1] Compiling Test             ( test.hs, test.o )
> ghc.exe: panic! (the 'impossible' happened)
>  (GHC version 6.10.3 for i386-unknown-mingw32):
>        link: GHC not built to link this way: LinkDynLib
>
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> --------------------------------------------------------------------------------------------
> How can I fix it?
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list