1、error 未定義UINT32_WIN
WIN32-Code/nmake/event2/event-config.h
/* #define EVENT__HAVE_STDINT_H_1 */
去掉注釋
2、error 打不開winsock2.h
添加windsock2.h的INCLUDE環境路徑。
3、error 缺少;
C語法錯誤,evutil_time.c的static GetSystemTimePreciseAsFileTime_fn_t GetSystem...連續兩行移動到函數體最前面。
4、Makefile.nmake的問題
可以參考2.1.11的編譯,其它地方已經有人寫了博客,不再重復。
5、編譯64位提示x86和x64不匹配,.nmake加了X64也不行
用64位的VS命令行工具編譯即可。