欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

undefined reference to `BN_new'

程序员文章站 2022-03-05 12:04:53
...

出现如下错误

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
相关标签: openssl