LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2325|回复: 1

求助 编写多线程的makefile的产生的错误

[复制链接]
发表于 2009-1-9 16:14:40 | 显示全部楼层 |阅读模式
[dl@RH9 g_list_linux]$ gcc -Wall -o testGlist g_string.o g_slist.o allocator.o  mutex.o block.o
pool.o testGlist.o -L/usr/include -lpthread

testGlist.o(.text+0x49): In function `main':
: undefined reference to `pthread_creat'
collect2: ld returned 1 exit status

报如上的错误是怎么回事情啊。。
额 帖子位置放错了。。。。
发表于 2009-1-12 10:51:54 | 显示全部楼层
应该是 pthread_create  吧。少了一个 e ?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表