ZLMediaKit / ZLToolKit

一个基于C++11的轻量级网络框架,基于线程池技术可以实现大并发网络IO
MIT License
1.98k stars 588 forks source link

Hello, I'm having trouble adding the static libraries libzltoolkit.a and libzlmediakit.a to my project. I get an error when I compile. #180

Closed qinlijie309 closed 1 year ago

qinlijie309 commented 1 year ago

/usr/bin/ld: /home/firefly/project/lib/libzltoolkit.a(SSLUtil.cpp.o): undefined reference to symbol 'TLS_server_method@@OPENSSL_1_1_0' //usr/lib/aarch64-linux-gnu/libssl.so.1.1: error adding symbols: DSO missing from command line

When compiling the static library, OpenSSL was enabled, and the compilation of the static library was fine, but when it was put into the project, this error occurred.

/usr/bin/ld: /home/firefly/project/lib/libzltoolkit.a(SSLUtil.cpp.o): undefined reference to symbol 'TLS_server_method@@OPENSSL_1_1_0' //usr/lib/aarch64-linux-gnu/libssl.so.1.1: error adding symbols: DSO missing from command line

编译静态库时候,将openssl打开了,编译静态库没有问题,但是放到项目中就报这个了

TRANS_BY_GITHUB_AI_ASSISTANT

xia-chu commented 1 year ago

Your project also needs to link libssl.so and libcrypto.so

你项目还要链接libssl.so 和 libcrypto.so

TRANS_BY_GITHUB_AI_ASSISTANT

qinlijie309 commented 1 year ago

It's done now, thanks! ~

现在可以了,谢谢~

TRANS_BY_GITHUB_AI_ASSISTANT