To use a different version of Visual Studio to compile, "VC =" should be changed to the back of the digital version of Visual Studio.īuild an empty project, add the following code: #include "include/curl/curl.h"Īnd compiled files in the folder "include" files and folders "lib" folder added to the project.If you need to compile the 64-bit version, the "MACHINE = x86" changed to "MACHINE = 圆4".If you need to compile debug version of the "DEBUG = no" change "DEBUG = yes", the default is DEBUG release version is not set.To compile a dynamic library, the "mode = static" read "mode = dll".Note, here we compile a 32-bit static library, release version. After the build is complete, the appropriate file in the build directory library, including libraries include, lib, bin three directories.Input compile command: nmake / f Makefile.vc mode = static VC = 12 MACHINE = x86 then return, wait for completion of the translation.Vs2013 x86 native tools enter into the command line, enter the command: cd / d E: \ xxxxxxxxxx \ curl-curl-7_65_2 \ winbuild, enters this directory.Open the Start menu in Visual Studio Tools under vs2013, the (To compile 64) Select the "Applies to 2017 VS 圆4 native tools command prompt" (To compile 32) Select "apply to the VS 2017 x86 native tools command prompt ", right to run as an administrator, here we choose to compile 32-bit.Curl into the folder "winbuild" folder, and copy its folder path, for example: E: \ xxxxxxxxxx \ curl-curl-7_65_2 \ winbuild.Download the source code into the folder, double-click the file to run buildconf.bat.From Source, where we chose curl-7_65_2.