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

Re: how to use -lreadline option in gcc



On 10/20/05, weiyun lv <lvweiyun@hotmail.com> wrote:
> I download some source code which use -lreadline -ltermcap and which has the
> line
> #include <readline/readline.h>
>
> my compile tells me that it can not find this file, accordingly it doesn't
> know function readline().
>
> what package should i install to solve this?

libreadline5-dev should do it.  There's also a libreadline4-dev , and
I have no idea what the difference is between them.  You can find
these with "apt-cache search readline".

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: