How to compile Libcurl under Windows

Source: Internet
Author: User

I tested it, like I'm not OK.

This was a short note about building CURL with SSL in Windows.

Tools Required:

    1. Curl Source:download Latest Curl source from here.
    2. Microsoft Visual C + + or Express edition:it looks like Edition Express are no longer available, but all EXP Ress Edition can is downloaded from here.
    3. Win32 OpenSSL:
      1. Download Win32 OpenSSL installer and Visual Studio redistributable from Here-these is Win32 OpenSSL v1.0.1e an D Visual C + + Redistributables at the time of this writing.
      2. Install Win32 OpenSSL; By the default it installs to C:\OpenSSL-Win32 .
      3. Install Visual C + + redistributable.
Building CURL:
    1. Run from Visual Studio 2008 Command Prompt Start, Menu > All Programs > Microsoft Visual C + + Express Edition > Visual Studio Tools. Or, visual Studio Command Prompt If you ' re using Visual C + + 2010.
    2. Navigate winbuild to sub-directory in CURL source directory, and issue following command:
nmake /f Makefile.vc mode=static WITH_SSL=static WITH_DEVEL=C:\OpenSSL-Win32 VC=X ENABLE_SSPI=no ENABLE_IDN=no ENABLE_WINSSL=no DEBUG=no MACHINE=x86 GEN_PDB=no ENABLE_IPV6=yes
Note:in vc=x, replace XWith 9 for Visual C + + or for Visual C + + 2010.

Once build is complete, CURL static libraries would are copied to buildsSub-Directory in CURL source directory.

How to compile Libcurl under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.