From owner-freebsd-questions Tue Oct 30 8:13:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdsl-216-36-101-146.dsl.chi.megapath.net (sdsl-216-36-101-146.dsl.chi.megapath.net [216.36.101.146]) by hub.freebsd.org (Postfix) with SMTP id 71ECC37B403 for ; Tue, 30 Oct 2001 08:13:09 -0800 (PST) Received: (qmail 58420 invoked from network); 30 Oct 2001 16:13:28 -0000 Received: from apu.five.sight (HELO apu.five.sight.fivesight.com) (lucas@192.168.0.102) by wiggum.five.sight with SMTP; 30 Oct 2001 16:13:28 -0000 From: Lucas Bergman MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15326.53671.687708.44817@apu.five.sight> Date: Tue, 30 Oct 2001 10:13:27 -0600 To: Sam Suh Cc: questions@freebsd.org Subject: Re: Question In-Reply-To: <3BDEC1EE.672DCC9@bigstudios.com> References: <3BDE7140.E1DA5ABB@in.ceeyes.com> <3BDEC1EE.672DCC9@bigstudios.com> X-Mailer: VM 6.96 under Emacs 20.7.2 Reply-To: lucas@fivesight.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > i use the getch() function as follows > > > > char ch; > > ch = getch(); > > > > but the compiller is not supporting the getch(), as it shows an > > error say UNDEFINED REFERENCE 'getch'/ > > Hi, 'man 3 getch' reveals to me that you need to include . > Have you included that? You're on the right track, but "undefined reference" is a linker error; no include directive is going to fix it. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message