It doesn't ship with readline support built in - and the source doesn't ship in a way that builds.
To get bc to compile (grabbing source using setup - the simple case):
* scan.l -- comment out the proto for readline: _PROTOTYPE(char *readline, (char *));
* configure --with-readline
* make
---------
At the very least I'd like to see this patch applied to the source (so at least readline support is easy to compile in).
Thanks!
> diff -pu scan.l.orig scan.l --- scan.l.orig 2003-02-27 14:40:03.000000000 -0800 +++ scan.l 2003-02-27 14:40:12.000000000 -0800 @@ -143,7 +143,7 @@ static int rl_len = 0;
/* Definitions for readline access. */ extern FILE *rl_instream; -_PROTOTYPE(char *readline, (char *)); +/* _PROTOTYPE(char *readline, (char *)); */
/* rl_input puts upto MAX characters into BUF with the number put in BUF placed in *RESULT. If the yy input file is the same as
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/