Libevent Library Compilation and use

Source: Internet
Author: User

Libevent Official website: http://libevent.org/

Windows 7 under compilation:

Compilation environment: Windows 7 + VS2010

(1) Unzip libevent to F:\libevent\libevent-2.0.21-stable

(2) Open the Microsoft Visual Studio 2010 command-line tool or (call "C:/Program Files/microsoft Visual Studio 10.0/vc/bin/vcvars32.bat") Setting up the VC10 environment

(3) Modify the following three files to add a macro definition:

Add "#define _WIN32_WINNT 0x0500" at the beginning of the following 3 files

Libevent-2.0.21-stable\event_iocp.c

Libevent-2.0.21-stable\evthread_win32.c

Libevent-2.0.21-stable\listener.c

(4) compile with the VS Command prompt tool:

CD/D F:\libevent\libevent-2.0.21-stable

nmake/f Makefile.nmake

Libevent Library Compilation and use

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.