编译测试程序

#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;
}

 

posted on 2020-06-07 12:15  sermatec江  阅读(129)  评论(0编辑  收藏  举报