[Haskell-cafe] DLL on Windows

Serguey Zefirov sergueyz at gmail.com
Tue Feb 16 13:01:51 EST 2010


Thank you very much.

How do you use C# for GUI development? Do you use hs-dotnet?

2010/2/16 Neil Mitchell <ndmitchell at gmail.com>:
> Hi Serguey,
>
> A GHC 6.10.4 version of Gtk2hs:
>
> http://www.mail-archive.com/gtk2hs-devel@lists.sourceforge.net/msg00340.html
>
> I used to recommend Gtk2hs over wxHaskell for GUI development as there
> was always a version that worked on Windows with the latest GHC
> release. I think I might have to switch back to recommending C# for
> GUI development...
>
> Thanks, Neil
>
> On Tue, Feb 16, 2010 at 5:19 PM, Serguey Zefirov <sergueyz at gmail.com> wrote:
>> I'd like to, but I cannot. My code is tied to gtk2hs, which supports
>> either 6.10.1 or 6.10.3.
>>
>> I put it another way: could I build DLL using ghc 6.12.*?
>>
>> If I can, I'll use 6.10.3 for gtk2hs code and 6.12 for all new stuff.
>>
>> 2010/2/16 Neil Mitchell <ndmitchell at gmail.com>:
>>> 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