I try to check the output of the get_wch
function from the ncurses library, on Archlinux install.
But when I call the function, I got this GCC error:
main.c:6:15: warning: implicit declaration of function "get_wch";
I linked the lib like my GCC command-line suggest:
gcc main.c -lncursesw -o exec
I have also check that ncurses is installed:
core/ncurses 6.2-1 [installed]
multilib/lib32-ncurses 6.2-1 [installed]
And I see the header generated at the lib compile time that allow me to use "widec" functions, when I list header files in the "usr/include" directory.
#include <curses.h>
int main() {
initscr();
int test = 0;
int result = get_wch(&test);
printf("Caractère : {} / Function code : {}\n", test, result);
endwin();
return 0;
}
I don't understand how to use this lib. And the available "documentation" seems to play against me...