Subject: Re: getting "readline" to link
To: Jeremy C. Reed <reed@reedmedia.net>
From: Mike Cheponis <mac@Wireless.Com>
List: netbsd-help
Date: 07/22/2005 00:49:46
That is absolutely correct. I would have never guessed this in 1e6 years.
thanks! -Mike
> You need something like:
>
> cc -lcurses -L/usr/pkg/lib -lreadline program.c -o program -Wl,--rpath -Wl,/usr/pkg/lib
>
> Have fun!
>
> Jeremy C. Reed
>
> BSD News, BSD tutorials, BSD links
> http://www.bsdnewsletter.com/
On Thu, 21 Jul 2005, Jeremy C. Reed wrote:
> On Thu, 21 Jul 2005, Mike Cheponis wrote:
>> #include<readline/readline.h>
>> #include<readline/history.h>
>> int main(){
>> char *s;
>> s=readline(NULL);
>> return 0;
>> }