curses.h에 있는 getch() 사용할때 에러가 납니다....
글쓴이: hansomeok / 작성시간: 일, 2003/10/05 - 12:24오전
/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]
Forums:
컴파일 명령을 어떻게 주셨습니까?컴파일할 때 curses 라이브러리를
컴파일 명령을 어떻게 주셨습니까?
컴파일할 때 curses 라이브러리를 링크시키지 않은 것 같네요.
gcc ... -lncurses(또는 -lcurses) 라고 해 보세요.
-----
http://monpetit.posterous.com/
http://monpetit.tistory.com/
댓글 달기