1.下载安装openssl

http://dl.pconline.com.cn/download/355862-1.html

版本:

OpenSSL(Win32) 1.0.1g

2.配置QT项目文件,添加

LIBS += -LC:/OpenSSL-Win32/lib/MinGw -leay32   

INCLUDEPATH += C:/OpenSSL-Win32/include

 

如果有underfined reference to `imp_ntohl@4`错误

 

编译文件中加:

LIBS += -l ws2_32

posted on 2017-01-09 16:04  baraka  阅读(1674)  评论(0编辑  收藏  举报