timer_create() 질문 - 도와 주세요 -
글쓴이: posnakes / 작성시간: 목, 2008/12/04 - 9:19오후
안녕하세요.
프로그래밍 중 문제가 발생하여 질문드립니다.
Application에서 타이머를 사용하기 위해 timer_create()및 timer_settime() 함수를 사용하였는데요.
gcc로 컴파일 하면 다음과 같은 에러가 발생합니다.
여기 저기 찾아보니 라이브러리중 librt.so.1이 없어서 인것 같은데요..
에러의 원인이 librt.so.1이 없어서 인지 만일 그렇다면 해당 라이브러리를
어디서 구해야 하는지 어떻게 추가 해야 하는지 조언 좀 부탁드리겠습니다.
감사합니다.
gcc 컴파일 시 에러
[root@localhost test]# gcc -o t_test timer_test.c
timer_test.c: In function 'sighandler':
timer_test.c:70: warning: cast from pointer to integer of different size
/tmp/ccEeE5aN.o(.text+0xcd): In function `SetTimer':
timer_test.c: undefined reference to `timer_create'
/tmp/ccEeE5aN.o(.text+0x164):timer_test.c: undefined reference to `timer_settime'
collect2: ld returned 1 exit status
Forums:


댓글 달기