【发布时间】:2013-03-10 22:41:31
【问题描述】:
嗨,我在线程中编写了一个简单的程序来创建 10 个线程并正常执行它们,但是当我在 linux 机器上编译代码时,它会出现以下错误..
*/tmp/cc4swqyK.o:在函数main':
threadcreate1.c:(.text+0x40): undefined reference topthread_create'
threadcreate1.c:(.text+0x78): undefined reference to `pthread_join'
collect2: ld 返回 1 个退出状态*
【问题讨论】: