Yakov ZAYTSEV | 13 Oct 17:45

Could not build win32 dll..

Hello,

Sadly, I've found --mk-dll option unrecognized by latest stable GHC 6.8.3..
I'm new to win32 development
How one can make win32 dll at the moment?
I've successfully compiled Adder sources from example from section
11.5.4 of user guide
I need to build dll to be called from foreign application
The only way I see is to use MinGW's gcc which is shipped with GHC
distrib to manually link everything GHC runtime needs
Did I missed something?

TIA

--

-- 
Best wishes,
Y
Ian Lynagh | 13 Oct 19:47
Gravatar

Re: Could not build win32 dll..


Hi Yakov,

On Mon, Oct 13, 2008 at 07:47:15PM +0400, Yakov ZAYTSEV wrote:
> 
> Sadly, I've found --mk-dll option unrecognized by latest stable GHC 6.8.3..
> I'm new to win32 development
> How one can make win32 dll at the moment?
> I've successfully compiled Adder sources from example from section
> 11.5.4 of user guide

It sounds like you have the wrong version of the users guide. 12.6 is
the section on Windows DLLs with 6.8.3, and doesn't mention that flag:
http://www.haskell.org/ghc/docs/6.8.3/html/users_guide/win32-dlls.html

Thanks
Ian
Bulat Ziganshin | 13 Oct 20:51

Re[2]: Could not build win32 dll..

Hello Ian,

Monday, October 13, 2008, 9:47:12 PM, you wrote:

> http://www.haskell.org/ghc/docs/6.8.3/html/users_guide/win32-dlls.html

this page says "Since this Haskell DLL depends on a couple of the DLLs
that come with GHC, make sure that they are in scope/visible."

i just checked 6.8.3 installation and don't found any except for perl56.dll
so what this sentence mean? how large will be overhead for simple dll
- it's a only RTS, i.e. <500kb or something larger?

--

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin <at> gmail.com
Yakov ZAYTSEV | 13 Oct 21:27

Re: Could not build win32 dll..

Thanks a lot Ian!
I was with abstracted eyes after day of work
Luckily after your hint I've finished my haskell MEX file experiment
in few minutes!
Thanks!

On Mon, Oct 13, 2008 at 9:47 PM, Ian Lynagh <igloo <at> earth.li> wrote:
>
> Hi Yakov,
>
> On Mon, Oct 13, 2008 at 07:47:15PM +0400, Yakov ZAYTSEV wrote:
>>
>> Sadly, I've found --mk-dll option unrecognized by latest stable GHC 6.8.3..
>> I'm new to win32 development
>> How one can make win32 dll at the moment?
>> I've successfully compiled Adder sources from example from section
>> 11.5.4 of user guide
>
> It sounds like you have the wrong version of the users guide. 12.6 is
> the section on Windows DLLs with 6.8.3, and doesn't mention that flag:
> http://www.haskell.org/ghc/docs/6.8.3/html/users_guide/win32-dlls.html
>
>
> Thanks
> Ian
>
>

--

-- 
Best wishes,
(Continue reading)


Gmane