This is my first blog post.
Curl Official Website: http://curl.haxx.se/
Baidu Encyclopedia: Curl is an open source file Transfer tool that uses URL syntax to work in command line mode
There are many compiler schemes on the web for curl, such as:
Windows platform compiled curl supports HTTPS
Compile the latest curl on windows, containing ZLIB,OPENSSL
Here is what I think the simplest method of compiling the winbuild, not involving HTTPS.
Platform:
Win7 64-bit, Visual Studio 2013
Tools:
1.curl-7.41.0.zip Source package: Http://curl.haxx.se/download/curl-7.41.0.zip, download and unzip
Compile steps:
1. Start menu--All Programs--visual Studio 2013--visual Studio tools--vs2013 Developer Command Prompt
2. Command line switch to \curl-7.41.0\winbuild directory
3. Command: nmake/f makefile.vc mode=dll vc=10 start compiling
nmake/f makefile.vc mode=dll vc=
Command parsing:
NMAKE is a compilation tool for MS
/F Parameter Description file name does not use the default makefile
MAKEFILE.VC is a Makefile file in Winbuild.
Mode=dll Compiling dynamic Link libraries
VC=10 is the VC version number, in theory, Visual Studio 2013 is VC12, but Curl Winbuild the highest support VC10, with VC10 compiled also no problem
Official Reference Document: \curl-7.41.0\winbuild\build. WINDOWS.txt
4. Wait a moment, if the compilation is successful, the compilation result will be saved in the directory of \curl-7.41.0\builds\libcurl-vc10-x86-release-dll-ipv6-sspi-winssl
The Bin folder is the Curl.exe executable and the Libcurl.dll dynamic link library
The Include folder is the header file to be referenced by the code that is written
Lib is the library file that you want to use
5. Install the Libcurl function library, open the \visual Studio Ultimate 2013\vc folder directory,
The above compiled include and Lib folder files are copied to the corresponding folder down,
Copy the Libcurl.dll in the bin directory to the C:\Windows\System32\ or directory where the executable file resides
Note: This step can also be done by configuring the visual Studio 2013
Right Property manager--debug | Win32--microsoft.cpp.win.user Double-click--vc++ Directory--executable directory, including directory, the corresponding location of the library directory
To complete
Then
On the right side of Visual Studio 2013, property manager--debug | Win32--microsoft.cpp.win.user Double-click--Linker--input--additional dependencies added; Libcurl.lib
6. Go to this step my visual Studio 2013 Curl has been configured successfully and is tested by code
Also comprehend by analogy, talk about the configuration of the Eclipse C + + curl in MinGW
The files in the compiled include and Lib folders are copied to the corresponding folder under the MinGW installation directory.
Libcurl.dll is also copied to the System32 directory or executable file in the same directory,
Then, project--properties--
This allows eclipse to use the Curl Library.
Summarize:
In this groping process learned the basic library compilation and configuration process, pay the time value.
Curl Winbuild Compilation and configuration for Visual Studio 2013