3 C++ API编译报错undefined reference to `SSL_library_init'

OpenSSL版本为1.1.1。错误详情如下:

../bin/linux_x64/ABI0/libDolphinDBAPI.so: undefined reference to `SSL_library_init'
../bin/linux_x64/ABI0/libDolphinDBAPI.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
../bin/linux_x64/ABI0/libDolphinDBAPI.so: undefined reference to `SSL_load_error_strings'
请先 登录 后评论

1 个回答

Johhny

OpenSSL版本是多少?OpenSSL 1.1以上版本可能会有问题,需要1.0的OpenSSL。

这个是源码编译安装OpenSSL的例子:https://gitee.com/dolphindb/api-cplusplus#9-openssl-1.0.2%E7%89%88%E6%9C%AC%E6%BA%90%E7%A0%81%E5%AE%89%E8%A3%85

请先 登录 后评论