Date: Sat, 18 Feb 2006 16:00:44 -0500 From: Mike Jeays <mj001@rogers.com> To: freebsd@voidmain.net Cc: freebsd-questions@freebsd.org Subject: Re: getline function Message-ID: <1140296444.24729.4.camel@chaucer.jeays.ca> In-Reply-To: <43F784AA.50206@voidmain.net> References: <43F68C7D.9010403@voidmain.net> <1140233843.982.21.camel@chaucer.jeays.ca> <43F74361.90109@voidmain.net> <43F75DF6.3050903@mac.com> <43F75F3C.7080903@voidmain.net> <43F76296.4010407@mac.com> <43F784AA.50206@voidmain.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2006-02-18 at 15:33 -0500, Tom Grove wrote: > #include <stdio.h> > #include <readline/readline.h> > #include <readline/history.h> > > int main() { > char *line; > > line = readline("Test: "); > > return 0; > } It compiles and works with "gcc -o readline readline.c -l readline". You need to tell the loader about the library. -- Mike Jeays http://ca.geocities.com/mike.jeays@rogers.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1140296444.24729.4.camel>