[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Bug in readline6.3?
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] Bug in readline6.3? |
Date: |
Fri, 2 Oct 2015 06:56:59 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
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 address@hidden http://cnswww.cns.cwru.edu/~chet/