리눅스에서 timer_create()를 사용하려 하는데 CLOCK_REALTME이 Invalid arguments라고 나타납니다.
글쓴이: 김은혁 / 작성시간: 수, 2012/10/03 - 3:41오후
현재 이클립스에서 timer를 만들고 있고 다음과 같이 timer_create()함수를 호출했스비다.
rtn = timer_create(CLOCK_REALTIME, &sigEvt, &timerId);
근데 CLOCK_REALTIME이 정의 되어 있지 않다는 메시지가 나타나네요...
Multiple markers at this line
- Invalid arguments ' Candidates are: int timer_create(int, sigevent *, int *) '
- Symbol 'CLOCK_REALTIME' could not be resolved
- undefined reference to `timer_create'
POSIX는 표준으로 알고 있는데.... 이와 같은 오류가 나타나는 이유를 모르겠습니다.....
Forums:
댓글 달기