キーの押下をキャプチャするためにgetch()を機能させようとしています。
#include <curses.h>
...
...
WINDOW *w;
char f;
w = initscr();
timeout(3000);
f = getch();
endwin();
次のエラーが発生します:-
undefined reference to `wgetch'
undefined reference to `stdscr'