After downloading Curl 7.37, there are various versions vs corresponding project files in project, we choose the appropriate open can compile, according to the different project configuration output the desired library, such as can switch a variety of SSL libraries, dll/lib,debug/release and so on.
However, these project configurations are not zlib and inconvenient. and the official website of the install document Http://curl.haxx.se/docs/install.html, is also a simple explanation of how to use the MSVC command line to compile libcurl and zlib, or Libcurl and OpenSSL, the original text as follows:
If you want to compile with zlib support, you'll need to build zlib (http://www.gzip.org/zlib/) as well. Please read the zlib documentation "on" to compile zlib. Define the Zlib_path environment variable to the location of Zlib.h and Zlib.lib, for example: set zlib_path=c:\z lib-1.2.8 then run ' nmake vc-zlib ' in Curl ' s root directory.
So I need libcurl under Windows with zlib and SSL support? method is available, please check the winbuild/build. WINDOWS.txt, which describes the detailed compilation options. Finally, summarize the steps:
1. Compile the zlib and put the header and generated library files into D:/deps/include and D:/deps/lib respectively
2.CD Curl-src\winbuild
3.nmake/f makefile.vc mode=dll with_devel=d:/deps with_zlib=dll enable_winssl=yes DEBUG=no
Co-compiling with Zlib and SSL under Windows Libcurl