On 10/1/15 7:44 PM, gyermo wrote:

> If I compile my program with:
>   g++ ... -lhistory -lreadline
> I get the problem.
> 
> While if I compile the program with the opposite order:
>   g++ ... -lreadline -lhistory
> Everything works.

If you're linking with libreadline, you shouldn't link with libhistory at
all -- the readline library incorporates the history library.  If you do,
though, you should make sure that the readline library comes first, as you
discovered.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to