Windows下如何编译libevent

 时间:2024-10-13 01:13:33

1、从Libevent官网主页或者github上将libevent源码包下载,默认名称为libevent-2.1.8-stable.tar,使用7zip或其他解压工具将其解压至磁盘任意目录。

2、打开VC2017开发命令行工具(点左下角Windows图标,选在Visual Studio 2017分支,点开"Developer Commmand prompt”),打开命令行工具。

Windows下如何编译libevent

4、其实libevent有几个编译选项可供选择,如下All编译:nmake /f Makefile.nmake [all] //all可以省略,默认是all静态库编译: nmake /f Makefile.nmake static_libs测试程序编译:nmake /f Makefile.nmake tests清理编译输出:nmake /f Makefile.nmake clean

Windows下如何编译libevent
热门搜索
宁波旅游地图 蒙山旅游区 春天去哪里旅游好 上海旅游集散中心网站 临安旅游网 七月份适合去哪旅游 丁丁旅游香港站 北京房山旅游景点 国家旅游局旅行社统计管理系统 绵山旅游