一. 下载需要的外部包,并解压,下面给出的链接如果无法访问,就google搜索下载一下:
•下载openssl
•下载zlib
二、修改libssh2项目配置:
1.C/C++->General->Additional Include Directories,增加 ‘openssl路径include‘.
2.C/C++->Preprocessor->Preprocessor Definitions,增加 ‘LIBSSH2_LIBRARY‘.
3.Librarian->General,output file设置为Debug_liblibssh2.lib
三、修改tests项目配置:
1.Linker->General,output file设置为Debug ests.exe
2.Linker->General->Additional Library Directories,增加:
1)‘openssl路径lib‘
2)‘zlib路径static32‘,如果时64机器,就选择mulustatic64(注意这个目录下的 ‘zlibstat.lib’ 修改为 ‘zlib.lib’ )
3) libssh2.lib路径,‘.Debug_lib‘.
3.C/C++->Preprocessor->Preprocessor,删除‘LIBSSH2_WIN32‘