curses.h에 있는 getch() 사용할때 에러가 납니다....

hansomeok의 이미지

/tmp/ccQUExO9.o: In function `main':
/tmp/ccQUExO9.o(.text+0x15): undefined reference to `stdscr'
/tmp/ccQUExO9.o(.text+0x1a): undefined reference to `wgetch'
collect2: ld returned 1 exit status

컴파일 하면 이런 에러가 나오네요...
왜그런거죠?[/code]

monpetit의 이미지

컴파일 명령을 어떻게 주셨습니까?
컴파일할 때 curses 라이브러리를 링크시키지 않은 것 같네요.
gcc ... -lncurses(또는 -lcurses) 라고 해 보세요.