#3536: ghci doesn't resolve libm symbols properly on Windows
---------------------+------------------------------------------------------
Reporter:  augustss  |          Owner:                  
    Type:  bug       |         Status:  new             
Priority:  normal    |      Component:  Compiler        
 Version:  6.10.4    |       Severity:  normal          
Keywords:            |       Testcase:                  
      Os:  Windows   |   Architecture:  Unknown/Multiple
---------------------+------------------------------------------------------
 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'
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3536>
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

Reply via email to