Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 什么是未定义的符号:X509\u扩展\u免费?_C++_Openssl - Fatal编程技术网

C++ 什么是未定义的符号:X509\u扩展\u免费?

C++ 什么是未定义的符号:X509\u扩展\u免费?,c++,openssl,C++,Openssl,我试图在linux上创建一个使用openssl的库。当我尝试加载此dll(*.在linux上也是如此)时,我得到的错误是“未定义的符号:X509_扩展名_free”。我有点困惑,这是Openssl还是我的代码实现的问题。在创建共享库时,您可能缺少了一个-lcrypto。您的意思是说我应该在我的库的makefile中包含-lcrypto吗?是的,您需要将使用此函数的每个二进制文件链接到该库。

我试图在linux上创建一个使用openssl的库。当我尝试加载此dll(*.在linux上也是如此)时,我得到的错误是“未定义的符号:X509_扩展名_free”。我有点困惑,这是Openssl还是我的代码实现的问题。

在创建共享库时,您可能缺少了一个
-lcrypto

您的意思是说我应该在我的库的makefile中包含-lcrypto吗?是的,您需要将使用此函数的每个二进制文件链接到该库。