#3242: ghci: can't load .so/.DLL for: m (addDLL: could not load DLL)
---------------------------+------------------------------------------------
Reporter: jeffz1 | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.2.1
Component: GHCi | Version: 7.0.1
Resolution: | Keywords:
Testcase: | Blockedby:
Difficulty: Unknown | Os: Windows
Blocking: | Architecture: x86
Failure: None/Unknown |
---------------------------+------------------------------------------------
Comment(by fryguybob):
After a little investigation I have discovered that on MinGW libm.a is
dummy library to satisfy -lm. The desired code is in libmingwex.a which
gets linked when compiling with ghc. Changing to `Extra-Libraries:
mingwex` does not help as ghci looks for DLL to satisfy that. I'm not
sure how to get libmingwex.a to load with ghci. If you turn libmingwex.a
into a dll:
{{{
ar -x libmingwex.a
gcc -shared *.o -o mingwex.dll
}}}
Then everything works.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3242#comment:10>
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