首页 文章
  • 2 votes
     answers
     views

    使用libevent监控couchbase存储桶

    我正在尝试实现一个C应用程序,它将监视来自 different application 的couchbase远程集群上发生的 writes / modifications / new documents 事件 . 我现在熟悉couchbase C SDK和同步实例,但我无法将它与libevent结合使用进行异步I / O. 我读了couchbase libevent plugin docu...
  • 2 votes
     answers
     views

    使用外部库CMake 'no rule to make target'

    我正在尝试将我的一个程序链接到libevent . 我使用CMake作为构建系统 . 我的项目结构如下: my_project ├── CMakeLists.txt ├── README.md ├── build │  └── Build stuff └── software ├── README.md ├── CMakeLists.txt ├── include ...
  • 1 votes
     answers
     views

    x86_64-w64-mingw32-g -posix交叉编译ubuntu

    嗨,我正在尝试编译包含libevent库的代码 . 因为util.h包含netdb.h,所以我找不到mingw-64目录中存在的库文件 . 尝试连接debian netdb.h,它失败了 . 在/usr/share/mingw-w64/include/event2/event.h:202:0中包含的文件中,来自../Thread_test.cpp:16:/ usr / share / mingw-...
  • -2 votes
     answers
     views

    valgrind从libevent调用evtimer_del后发现内存泄漏

    我只是用event_new()创建一个新事件,最后使用evtimer_del()进行del .然后valgrind警告我存在内存泄漏(1个块中的128个字节) .我错过了什么? 代码: evthread_use_pthreads(); auto _base = event_base_new(); event_init(); event* _timer = event_new(_base, -1, ...

热门问题