Windows平台编译libevent

来源:互联网 发布:淘宝客服服务流程 编辑:程序博客网 时间:2024/06/10 09:39

使用VisualStudio来编译,我的电脑上安装的是VS2013。
1、在开始菜单项里面(或者在VS安装路径中)打开Developer Command Prompt for VS2013.exe
2、在Developer Command Prompt for VS2013.exe命令行中进入你的libevent源码路径(例如d:\libevent)
cd d:\libevent
3、执行编译命令: nmake -f makefile.nmake
4、最终生成libevent.lib、libevent_core.lib和libevent_extras.lib 3个静态库

0 0
原创粉丝点击