#5876: Dynamic libraries don't work on Windows
---------------------------+------------------------------------------------
Reporter: rl | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1 | Keywords:
Os: Windows | Architecture: x86
Failure: Runtime crash | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------+------------------------------------------------
I tried to compile hello-world with -dynamic and -threaded on Windows:
{{{
ghc -o tst.exe Tst.hs -dynamic -threaded
./tst.exe
}}}
This fails both on cygwin and on mingw: the former can't find
`libHSbase-4.5.0.0-ghc7.4.1.dll` and the latter `libHSrts_thr-
ghc7.4.1.dll`. The only solution to this seems to be to find and copy all
DLLs from the GHC distribution to a separate directory and to make sure
that this directory is on the search path. If I install packages, I have
to find and copy those DLLs, too. This makes working with dynamically
linked programs rather harder than it should be.
After doing that, hello world segfaults if I compile with -threaded. It
seems to work without -threaded, but that isn't useful for us.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5876>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs