Skip to content

Instantly share code, notes, and snippets.

@limingjie
Last active March 16, 2018 06:19
Show Gist options
  • Save limingjie/bcbdccd8ab1e3269b282 to your computer and use it in GitHub Desktop.
Save limingjie/bcbdccd8ab1e3269b282 to your computer and use it in GitHub Desktop.
Build libevent 2.0.22 with MinGW

Build libevent 2.0.22 with MinGW

  • Download
http://jaist.dl.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
  • Build
$ ./configure --prefix=/mingw
$ ./configure && make
$ make install
@laptrinhbockchain
Copy link

I also same error when building libevent-2.1.8 with mingw32.
I fixed this error by adding the following code into the bottom of file "config.h":
#include <winerror.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment