#include <event2/event.h> #include <iostream> using namespace std; int main() { cout << "test libevent.\n"; event_base * base = event_base_new(); if (base) { cout << "event_base_new success.\n"; } return 0; }
原文:https://www.cnblogs.com/orejia/p/13060099.html