用VS2008的nmake编译(libevent)C语言代码的方法

用VS2008的nmake编译(libevent)C语言代码的方法


1.切换到nmake.exe所在的目录

C:\Users\aaa>cd D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
C:\Users\aaa>d:


2.用vcvars32.bat设置环境变量
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin>vcvars32.bat


D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin>"D:\Program Files (x86
)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2008 x86 tools.



3.切换到源代码所在的目录
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin>cd E:\libevent-2.0.21-stable-vs2008
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin>e:


4.用nmake.exe编译
E:\libevent-2.0.21-stable-vs2008>nmake /f Makefile.nmake


你可能感兴趣的:(用VS2008的nmake编译(libevent)C语言代码的方法)