Notice
Recent Posts
Recent Comments
Link
두근두근이야기
mq함수류 오류 해결 본문
posix_msg.o: In function `main':
posix_msg.c:(.text+0xb5): undefined reference to `mq_unlink'
posix_msg.c:(.text+0xe2): undefined reference to `mq_open'
posix_msg.c:(.text+0x1de): undefined reference to `mq_close'
posix_msg.o: In function `start_msq_sender':
posix_msg.c:(.text+0x334): undefined reference to `mq_send'
posix_msg.o: In function `start_msq_receiver':
posix_msg.c:(.text+0x37d): undefined reference to `mq_getattr'
posix_msg.c:(.text+0x3bb): undefined reference to `mq_receive'
빌드시 -l(라이브러명)
ex) # gcc -o mq_test mq_test.c -lpthread -lrt
'IT > IT ::Linux' 카테고리의 다른 글
우분투(ubuntu) man page 설치 (0) | 2013.08.09 |
---|---|
뮤텍스와 세마포어 차이 (0) | 2013.08.09 |
동적(공유) 라이브러리와 정적 라이브러리 (0) | 2013.08.09 |
/usr/bin 밑에 있는 파일을 건드려서 컴파일이 안될 때 (0) | 2013.08.08 |
정적 라이브러리, 동적 라이브러리 (0) | 2013.08.08 |