找回密码
 注册
查看: 501|回复: 1

我在程序中使用了hmac_md5,编译出错!

[复制链接]
发表于 2004-5-21 16:07:50 | 显示全部楼层 |阅读模式
大家帮我看看怎么回事,谢谢!
/tmp/ccfQwCD4.o: In function `main':
/tmp/ccfQwCD4.o(.text+0x25d): undefined reference to `hmac_md5(unsigned char const *, int, unsigned char const *, int, unsigned char *)'
collect2: ld returned 1 exit status

使用如下指令编译:
g++ test.cpp MailCoder.cpp -L/usr/local/lib/sasl -L/usr/local/lib -L/usr/lib
发表于 2004-5-21 20:34:26 | 显示全部楼层
hmac_md5是哪个库出来的,编译时用-lxxxx链接该库
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-15 23:22 , Processed in 0.038464 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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