bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help with rookie mistake


From: Sven Joachim
Subject: Re: need help with rookie mistake
Date: Mon, 11 Mar 2024 13:43:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

On 2024-03-11 07:12 -0500, G. Branden Robinson wrote:

> I'm making a rookie mistake here, but I can't figure out which one.
>
> ncurses seems not to be exposing the opaque functions.
>
> cc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 simple.c -o simple -lncurses -ltinfo

This works for me.

> simple.c: In function ‘main’:
> simple.c:21:6: warning: implicit declaration of function ‘is_cbreak’;
> did you mean ‘nocbreak’? [-Wimplicit-function-declaration]
>    21 |  if (is_cbreak())
>       |      ^~~~~~~~~
>       |      nocbreak
> simple.c:23:6: warning: implicit declaration of function ‘is_echo’ 
> [-Wimplicit-function-declaration]
>    23 |  if (is_echo())
>       |      ^~~~~~~
> simple.c:25:6: warning: implicit declaration of function ‘is_nl’ 
> [-Wimplicit-function-declaration]
>    25 |  if (is_nl())
>       |      ^~~~~
> simple.c:27:6: warning: implicit declaration of function ‘is_raw’; did you 
> mean ‘is_pad’? [-Wimplicit-function-declaration]
>    27 |  if (is_raw())
>       |      ^~~~~~
>       |      is_pad

Maybe your ncurses.h is too old, NCURSES_VERSION_PATCH has to be at
least 20230812 because the functions were added in that patchlevel.

Cheers,
       Sven



reply via email to

[Prev in Thread] Current Thread [Next in Thread]