libcouchabase和libevent的恩怨

本文探讨了一个关于使用libcouchbase和libevent时遇到的问题:在C++程序中同时链接这两个库会导致请求失败。文章详细描述了问题的复现过程,并寻求解决办法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >




libcouchbase Could not locate plugin library



Hi,

I had a simple store/get libcouchbase program running successfully in C++. It was compiled, and linked with the -lcouchbase flag.

I then added the -levent flag (in addition to the -libcouchbase) at the end so I could start doing some event loops, but didn't add any code (only changed the flag). The program compiles and links successfully. However, for some reason I now get this error: Error 27, "Temporary failure on the client" on every request. I removed the -levent and it works, added it back and it doesn't - multiple times. I tried both on libcb for 1.8 and 2.0 and it's the same issue.

How can I fix this?

Thanks
AED


http://www.couchbase.com/communities/q-and-a/trying-use-libevent



4) libevent (optional)

libcouchbase allows plugins to different event notification frameworks. The default framework for UNIX-like systems is libevent, so unless you're going to create your own plugin you might want to install this. Please note that the default for windows is something else so you don't need this at all for windows.

************************


https://github.com/chitika/cberl/blob/master/c_src/cb.c


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值