要用什么库文件才可以编译
含有线程处理的程序
我编译以前用LINUX THREAD的程序出现如下错误!
[root@sky thread]# gcc lifecycle.c -o lifecycle
/tmp/ccaN0qnm.o(.text+0x45): In function `main':
: undefined reference to `pthread_create'
/tmp/ccaN0qnm.o(.text+0x70): In function `main':
: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
请高手帮忙,谢谢!!