c - How use key_name from ncurses -
sorry bad english. make app in c ncurses-5.9 lib. in docs lib ( ncurses-5.9/doc/html/man/curs_util.3x.html ) found function key_name defined in curses.h, if include curses.h, still error key_name not declared in scope.
what need use key_name function?
try include <ncurses.h> well.
and sure installed on distro, , link correctly @ compilation.
if still have trouble, check files are.
$sudo updatedb $locate curses.h $locate ncurses.h edit:
from error pasted, shows it's not problem of header inclusion. ld (the linker) can't find symbol associated key_name. means not compiling correct libray (maybe path issues) or need one, or key_name does'nt exist in version trying use.
and think not passing parameter in function, using "wint_t" instead of "wchar_t", might why can't find function.
and try -lcurses in addition
Comments
Post a Comment