Does anyone have clear instructions on building libevent-2.0.10 with Visual Studio 2008?
Asked
Active
Viewed 9,211 times
3 Answers
19
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.

Hans Passant
- 922,412
- 146
- 1,693
- 2,536
-
1Just a note for others wanting to build libevent. Having been away from C/C++ for a long while, I made a nube assumtion that the libevent build they provided would output a libevent.dll. Instead it's examples which compile only required parts of libevent into their exe's. – Rich Mar 13 '11 at 17:28
-
But there is no nmake in Visual Studio 2008. – Volodymyr Bezuglyy Oct 11 '13 at 14:25
-
Sure there is, located in the vc\bin subdirectory. The Express edition is special. – Hans Passant Oct 11 '13 at 14:32
1
Don't forget to run vcvars32.bat before nmake to set up the environment variables for VC.

satyagraha
- 623
- 7
- 11
-
This is unnecessary from the `Visual Studio Command Prompt`. A link which is created in the start menu when the compiler is installed. – unixman83 Mar 06 '12 at 05:46
-
0
If you are using the GUI to build it, do not check the option "Create directory for solution" when creating the project.

DavidZhang
- 41
- 3