ghci doesn't resolve libm symbols properly on Windows
The erf package on hackage uses the libm functions erf and erfc. This all works fine in ghc, but in ghci we get an error.
To repeat:
cabal install erf
Try compiling
import Data.Number.Erf
main = print $ erf (1::Double)
and it works fine. Now try
ghci
:m +Data.Number.Erf
print $ erf (1::Double)
and the result is
Loading package syb ... linking ... done.
Loading package base-3.0.3.1 ... linking ... done.
Loading package erf-1.0.0.0 ... linking ... <interactive>: C:\Program Files\Haskell\erf-1.0.0.0\ghc-6.10.4\HSerf-1.0.0.0.o: unknown
symbol `_erfc'
: unable to load package `erf-1.0.0.0'
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.4 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |