Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2001 17:53:06 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        Lucas Bergman <lucas@fivesight.com>
Cc:        Sam Suh <sam@bigstudios.com>, questions@freebsd.org
Subject:   Re: Question
Message-ID:  <20011030175306.A6302@raggedclown.net>
In-Reply-To: <15326.53671.687708.44817@apu.five.sight>; from lucas@fivesight.com on Tue, Oct 30, 2001 at 10:13:27AM -0600
References:  <3BDE7140.E1DA5ABB@in.ceeyes.com> <3BDEC1EE.672DCC9@bigstudios.com> <15326.53671.687708.44817@apu.five.sight>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 30, 2001 at 10:13:27AM -0600, Lucas Bergman wrote:
> > > 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 <curses.h>.
> > 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

Mmm, close, but not quite a cigar.
The undefined reference could be because of a missing
macro definition, which may be included in an include file.

I am not saying that this is the case with this problem.
Just trying to maintain accuracy :)

-- 
Regards
Cliff



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011030175306.A6302>