Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2001 10:06:22 -0500
From:      Sam Suh <sam@bigstudios.com>
To:        venkatn <venkatn@in.ceeyes.com>, questions@freebsd.org
Subject:   Re: Question
Message-ID:  <3BDEC1EE.672DCC9@bigstudios.com>
References:  <3BDE7140.E1DA5ABB@in.ceeyes.com>

next in thread | previous in thread | raw e-mail | index | archive | help
venkatn wrote:
> 
> hi all,
> 
> iam working with getch() function in FreeBSD programming
> 
> 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'/
> 
> i also used addch() and it too shows the error say UNDEFINED REFERENCE.
> 
> so please guide me if possible the correct syntax of the addch()
> function and the files to be included.
> 
> Reply me ASAP
> 
> With Regards
> 
> N.Venkateswarulu
> 

Hi, 'man 3 getch' reveals to me that you need to include <curses.h>.
Have you included that?

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?3BDEC1EE.672DCC9>