|
|
要用什么库文件才可以编译
含有线程处理的程序
我编译以前用LINUX THREAD的程序出现如下错误! [root@sky thread]# g++ lifecycle.c -o lifecycle -lpthread
/lib/libpthread.so.0: undefined reference to `__on_exit@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `_errno@GLIBC_2.0'
/lib/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_PRIVATE'
/lib/libpthread.so.0: undefined reference to `_h_errno@GLIBC_2.0'
collect2: ld returned 1 exit status |
|