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.
--sigbjorn ----- Original Message ----- From: "Mark Tehver" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 12:42 Subject: unable to create DLL with GHC 5.04 > Hi! > > I seem to have some problem building DLLs under Win32 with GHC 5.04. > When I follow the instructions from > http://haskell.cs.yale.edu/ghc/docs/latest/html/users_guide/win32-dlls-forei gn.html > all looks ok until I do the last step. Then linker reports: > > /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: > warning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to > 63601000 > C:/ghc/ghc-5.04/libHSrts.a(StgMiscClosures.o)(.text+0xab1):StgMiscClosures.h c: > undefined reference to `_imp___iob' > C:/ghc/ghc-5.04/libHSrts.a(StgMiscClosures.o)(.text+0xae5):StgMiscClosures.h c: > undefined reference to `_imp___iob' > C:/ghc/ghc-5.04/libHSrts.a(StgMiscClosures.o)(.text+0xb19):StgMiscClosures.h c: > undefined reference to `_imp___iob' > C:/ghc/ghc-5.04/libHSrts.a(StgMiscClosures.o)(.text+0xb4d):StgMiscClosures.h c: > undefined reference to `_imp___iob' > C:/ghc/ghc-5.04/libHSrts.a(StgMiscClosures.o)(.text+0xb81):StgMiscClosures.h c: > undefined reference to `_imp___iob' > C:/ghc/ghc-5.04/libHSrts.a(StgMiscClosures.o)(.text+0xbb5):StgMiscClosures.h c: > more undefined references to `_imp___iob' follow > collect2: ld returned 1 exit status > dllwrap: gcc exited with status 1 > > With GHC 5.02.x all seemed to work fine... > > Best 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
