chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Error: unbound variable: read-line


From: Tim van der Linden
Subject: Re: [Chicken-users] Error: unbound variable: read-line
Date: Fri, 13 Dec 2013 18:43:10 +0100

On Fri, 13 Dec 2013 18:35:44 +0100
Daniel Beecham <address@hidden> wrote:

Hi Daniel

> $ cat read.ss
> (let ((s (read-line))) (print s))
> $ csc read.ss
> $ ./read
> 
> Error: unbound variable: read-line
> 
>     Call history:
> 
>     read.ss:1: read-line    <--
> 
> $ csi read.ss
> [...]
> ; loading read.ss ...
> <input>
> <input>
> #;1> <C-d>
> 
> $ chicken --version
> [...]
> Version 4.8.0.3 (Stability/4.8.0) (rev 091c3d9)
> linux-unix-gru-x86-64 [ 64bit manyargs dload ptables ]
> compiled 2013-03-13 on aeryn.xorinia.dim (Darwin)
> [...]
> 
> Any ideas why this might be happening?

Did you load the readline egg in your read.ss file (use readline)?

The CSI interpreter preloads some modules/eggs for ease of use, readline is one 
of them.
On compile time these are not available, you have to make sure that you load 
them in your CHICKEN Scheme file. 

Hope this helps!

Cheers
Tim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]