编译测试程序

Posted orejia

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译测试程序相关的知识,希望对你有一定的参考价值。

#include <event2/event.h>
#include <iostream>

using namespace std;

int main()
{
    cout << "test libevent.
";
    event_base * base = event_base_new();
    if (base)
    {   
        cout << "event_base_new success.
";
    }   
    return 0;
}

 

以上是关于编译测试程序的主要内容,如果未能解决你的问题,请参考以下文章