[FZH] AUTOMAKE -l链接器参数

Mike zhtx10在gmail.com
星期一 二月 21 15:07:18 UTC 2011


呃,满怀欢喜的测试了(方式ONE:automake --add-missing 方式 
TWO:./autogen.sh),结果仍然
undefined reference to `gdbm_fetch'
undefined reference to `gdbm_open'
.........................
纠结了,还没有解决,还是感谢你的答案了。。
不知道到底怎么回事。。

于 2011年02月21日 22:59, Robin Lee 写道:
> 在 Makefile.am 中加入
> LDADD = -lpthread -lgdbm
>
> 这还是很基础的吧
>
> 2011/2/21 Mike<zhtx10在gmail.com>
>
>> 明知道有可能不会获得回复,我愿意一试。
>> 我的一个用automake/autoconf管理的程序使用了pthread和gdbm,只需要在编译器
>> 和链接器中加入 -lpthread -lgdbm,可是我只是刚学automake/autoconf,不知道
>> 怎么弄,跪求帮助!
>>
>> --
>> Mike.
>> Blog: http://ekd123.is-programmer.com/
>> Fedora Project Contributor.
>>
>> _______________________________________________
>> Chinese mailing list
>> Chinese at lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/chinese
>>
> _______________________________________________
> Chinese mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese

-- 
Mike.
Blog: http://ekd123.is-programmer.com/
Fedora Project Contributor.



关于邮件列表 Chinese 的更多信息