The thing to do is to use ghc as your C compiler. It will entirely ingore your path etc, and will faithfully use the mingw stuff, give the compiler the right flags etc.
Perhaps this possibility is not stated clearly enough in the manual; I see that Sigbjorn committed a note about it yesterday in response to your mail S | -----Original Message----- | From: Mark Tehver [mailto:[EMAIL PROTECTED]] | Sent: 12 July 2002 12:48 | To: Sigbjorn Finne | Cc: [EMAIL PROTECTED] | Subject: Re: unable to create DLL with GHC 5.04 | | | On Thu, 11 Jul 2002, Sigbjorn Finne wrote: | | > Hi, | > | > looks as if you're mixing mingw and cygwin object | > files. ghc-5.04 is mingw-based, so make sure you | > feed in the flag -mno-cygwin to gcc when compiling | > .c files. | > | | Yes, you are right - I have cygwin installed and seems that | ghc uses gcc.exe and ld.exe from cygwin directory and not the | ones from ghc-5.04/gcc-lib. The problem seems to be that | cygwin bin directories are in front of ghc bin directories in | my path. When I put the directories in reverse order, | everything seems ok. But note that previous ghc versions did | not require that. So I still think something is wrong... | | Besides, even if I put gcc bin directories in front of cygwin | bin directories, ld.exe complains about missing dllcrt2.o | file although it is present in ghc-5.04/gcc-lib directory. | | Regards, | Mark | | _______________________________________________ | Glasgow-haskell-bugs mailing list | [EMAIL PROTECTED] | http://www.haskell.org/mailman/listinfo/glasgow-| haskell-bugs | _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
