Problems creating a DLL with ghc-5.02.1

Simon Peyton-Jones simonpj@microsoft.com
Thu, 6 Dec 2001 07:32:08 -0800


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:Patrick.Lehti@softwareag.com]=20
| Sent: 06 December 2001 14:05
| To: 'glasgow-haskell-users@haskell.org'
| Subject: Problems creating a DLL with ghc-5.02.1
|=20
|=20
| Hi,
|=20
| I tried to wrap a Haskell application in a DLL using=20
| ghc-5.02.1. But this is not working, with cygwin in path I=20
| got this error message:
| /usr/lib/mingw/libmingw32.a(gccmain.o)(.text+0x88):gccmain.c:=20
| multiple definition of `__main'
| /usr/lib/libm.a(ds00023.o)(.text+0x0): first defined here
|=20
| ... and without cygwin in path, it could not find "dllwrap"=20
| and "dlltool".
|=20
| Is there any solution for this problem?
|=20
| Patrick
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list=20
| Glasgow-haskell-users@haskell.org=20
| http://www.haskell.org/mailman/listinfo/glasgow-| haskell-users
|=20