首页 > 代码库 > 解决qt提示:qt.network.ssl: QSslSocket: cannot call unresolved function DH_free和qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams

解决qt提示:qt.network.ssl: QSslSocket: cannot call unresolved function DH_free和qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams

转载请注明出处:https://i.cnblogs.com/EditPosts.aspx?postid=7127254

 

运行环境:VS2015&Qt5.8

 

方法一(未能解决):把C:\Qt\Qt5.8.0\Tools\QtCreator\bin下的libeay32.dll和ssleay32.dll库复制到C:\Qt\Qt5.8.0\5.8\msvc2015_64\bin下。

 

方法二(解决):登录网站https://indy.fulgan.com/SSL/下载 openssl-1.0.2i-x64_86-win64.zip,解压后把libeay32.dll和ssleay32.dll库复制到C:\Qt\Qt5.8.0\5.8\msvc2015_64\bin下。

解决qt提示:qt.network.ssl: QSslSocket: cannot call unresolved function DH_free和qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams