[ ★ ]Study/Programming

undefined reference to `pthread_create'

nroses-taek 2017. 6. 23. 09:43
반응형

undefined reference to `pthread_create' 에러가 나오는 경우


1. #include <pthread.h> 미포함

2. gcc 컴파일 할 때 -lpthread 옵션 미포함


gcc -o thread thread.c -lpcap

반응형