undefined reference to `BN_new'

出现如下错误

undefined reference to `BN_CTX_new'
undefined reference to `BN_new'
undefined reference to `BN_rand'
undefined reference to `BN_bn2hex'
undefined reference to `BN_bn2hex'
undefined reference to `MD5'

解决办法

# gcc -lcrypto
posted @ 2018-11-06 12:55  thomas_blog  阅读(573)  评论(0编辑  收藏  举报