logo       

RE: Readline on Windows?: msg#00034

lang.haskell.glasgow.bugs

Subject: RE: Readline on Windows?

On 16 November 2004 17:16, Koen Claessen wrote:

> Compiling the following program (Bug.hs):
>
>>>>
> module Main where
>
> import System.Console.Readline
>
> main =
> do ms <- readline "Hi> "
> print ms
> <<<
>
> Using GHC 6.2.2 on Windows XP, using the command line:
>
> ghc --make Bug -o bug
>
> Produces the following message:
>
>>>>
> Chasing modules from: Bug
> Compiling Main ( Bug.hs, Bug.o )
> Linking ...
>
c:/ghc/ghc-6.2.2/libHSreadline.a(Readline__96.o)(.text+0xaa):ghc11748.hc
:
> undefined reference to `readline'
> <<<

Sigbjorn describes how to fix this bug here:

http://www.haskell.org/pipermail/glasgow-haskell-users/2004-November/007
370.html

I'll add the information to the FAQ.

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise