Compile Curl-ssl version hit a lot of pits, here to record. Hands-on testing, note version number!!!!!
1. Download curl-7.43.0 libssh2-1.3.0 openssl-1.0.0s ActivePerl5 zlib nasm
2. Compile OpenSSL, you can refer to this article at the time of compiling http://www.oschina.net/question/54100_138557
Compilation environment vs2010, OpenSSL version: openssl-1.0.0s (vs2010 compiled no problem, the rest of the version with vs2013 compile problems!!! High version will appear constructor what error )
VS2010 Command window into the OpenSSL directory, ms\32all.bat all compiled (if the use of vs2013 compilation will occur gethostbyname function problems, follow the prompts to define the macro or can not compile, can only be compiled with VS2010)
Wait for a lengthy process to compile successfully. The current directory below Out32 is what we need to compile it.
3. Compile libssh2-1.3.0, directly double-click the. dsw file, VS2010 automatically open the project, add the relevant files to the include (you can also set the header file path, more trouble, DLL Lib version is required, to add multiple times, Copying the header files directly into the include is very time-saving. Compiling is Libssh2.lib file and Libssh2.dll.
4. Go to the Projects directory, double-click Build-openssl.bat, and then go to directory CURL-7.43.0\PROJECTS\WINDOWS\VC12, double-click to open the project, which is used by vs2013 open. Copy the relevant library files to Lib for compilation. If you use vs2013, the "Linker tools error LNK2026 XXX module is unsafe for SAFESEH images" situation. Look at this link http://blog.csdn.net/zengraoli/article/details/11919307
can solve the problem.
Successful compilation took a day! Different version numbers appear in different pits!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Windows Curl SSL Version compilation