Problems creating a DLL with ghc-5.02.1

2001-12-06 Thread Lehti, Patrick
Hi, I tried to wrap a Haskell application in a DLL using ghc-5.02.1. But this is not working, with cygwin in path I got this error message: /usr/lib/mingw/libmingw32.a(gccmain.o)(.text+0x88):gccmain.c: multiple definition of `__main' /usr/lib/libm.a(ds00023.o)(.text+0x0): first defined here ...

RE: Problems creating a DLL with ghc-5.02.1

2001-12-06 Thread Simon Peyton-Jones
I know that Sigbjorn is working on this. We will do 5.02.2 in due course, but I'm not yet sure how dll-friendly is will be. I don't understand all the issues yet. Simon | -Original Message- | From: Lehti, Patrick [mailto:[EMAIL PROTECTED]] | Sent: 06 December 2001 14:05 | To: '[EMAIL

Re: Problems creating a DLL with ghc-5.02.1

2001-12-06 Thread Sigbjorn Finne
Yes, if you're willing to do the following: - only use the --mk-dll option when linking together object files archives (i.e., don't try compile a Haskell source file and create its DLL during the same invocation of GHC). (Remembering to include the _stub.o files too when linking). -