Thank you so much Damien and Szalay for helping out.
My issue got resolved by including THREADED and HAVE_OPENSSL_H in my compiler
options. I am able to call the API now.
I didn't know that. I thought we have to enable theses flags while building
zookeeper C library.
Thank you Damien for this __
Hello Pankaj,
> Please help me in defining those ifdef THREADED and HAVE_OPENSSL_H variables.
Once you have a ZooKeeper client library compiled with the required
features (which is indeed easily obtained by doing a Maven build in an
environment which provides the supporting libraries), it is ju
Hi Pankaj,
Sorry, I am not very experienced in C++... maybe this is why I am still not
sure what is your problem.
Is this a compile time error or a link error? Are you trying to develop
your own new C / C++ application using ZooKeeper client? Or you want to
build some existing application that is
Hi Szalay,
I have tried the same as you mentioned, linked code against zookeeper_mt
library but still I am not able to call the API’s present under #ifdef
THREADED. When I comment this ifdef then I am able to call the API’s. Getting
the same error as mentioned below.
Also I have to use ssl supp
Hello Pankaj,
ZooKeeper C client provides two different APIs, a sync (multithreaded) and
an async (single threaded).
If you want to use the sync API (multi threaded) then make sure to link
your application code against the zookeeper_mt library.
When compiling the ZooKeeper C client code, you can