Ticket #3536 (closed bug: fixed)
ghci doesn't resolve libm symbols properly on Windows
| Reported by: | augustss | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | Runtime System | Version: | 6.10.4 |
| Keywords: | Cc: | ||
| Operating System: | Windows | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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'
Change History
Note: See
TracTickets for help on using
tickets.
