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

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

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@gmail.com

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
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, Y
participants (3)
-
Bulat Ziganshin
-
Ian Lynagh
-
Yakov ZAYTSEV