How to build libevent version 2.0.10 with Visual Studio 2008

Rich picture Rich · Mar 13, 2011 · Viewed 9.1k times · Source

Does anyone have clear instructions on building libevent-2.0.10 with Visual Studio 2008?

Answer

Hans Passant picture Hans Passant · Mar 13, 2011

Use the Visual Studio Command Prompt, then

cd \where\you\put\it
nmake -f makefile.nmake

Or if you prefer the IDE, then File + New + Project, Visual C++, General node, pick the Makefile Project template. Name = libevent-2.0.10-stable, Location = parent directory (\where\you\put). OK. Next. Build command = nmake -f makefile.nmake, rest blank.