From owner-freebsd-questions@FreeBSD.ORG Sat Feb 18 21:00:47 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9200B16A441 for ; Sat, 18 Feb 2006 21:00:47 +0000 (GMT) (envelope-from mj001@rogers.com) Received: from smtp108.rog.mail.re2.yahoo.com (smtp108.rog.mail.re2.yahoo.com [68.142.225.206]) by mx1.FreeBSD.org (Postfix) with SMTP id CA26243D45 for ; Sat, 18 Feb 2006 21:00:46 +0000 (GMT) (envelope-from mj001@rogers.com) Received: (qmail 19423 invoked from network); 18 Feb 2006 21:00:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=j6IPfNp0bvfiZSRL9h4LMvKzdIY1OGLBM78j7kwxovdJMgLYUES5vXu4+Oesc3fB0jlgJuboTsHZvqza6BmXx8CQTxtZC3WYUCCux5Cn/I6OLZOjt0dVwKZ3XAh7cUwaZKJaV9zco4HMALEiaV2jnAI2Gk9Ng1K6maIixkvjtv8= ; Received: from unknown (HELO chaucer.jeays.ca) (mj001@rogers.com@72.139.51.96 with plain) by smtp108.rog.mail.re2.yahoo.com with SMTP; 18 Feb 2006 21:00:46 -0000 From: Mike Jeays To: freebsd@voidmain.net 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> Content-Type: text/plain Date: Sat, 18 Feb 2006 16:00:44 -0500 Message-Id: <1140296444.24729.4.camel@chaucer.jeays.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: getline function X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2006 21:00:47 -0000 On Sat, 2006-02-18 at 15:33 -0500, Tom Grove wrote: > #include > #include > #include > > 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