Zookeeper C Library Include Errors

23 hours ago 1
ARTICLE AD BOX

I followed the directions on the official website to install the C libraries in my Linux remote host. The only issue I am having is that none of the synchronous APIs are present. For example, I want to do this:

ret = zoo_get(zh, (std::string("/services/") + server_node).c_str(), 0, buf, &len, nullptr);

But I get a compilation error

error: ‘zoo_get’ was not declared in this scope; did you mean ‘zoo_aget’?

I have verified that the libraries are not corrupted by grep-ing:

> grep zoo_get_children /usr/local/include/zookeeper/zookeeper.h * are set using \ref zoo_get_children or \ref zoo_get_children2. ZOOAPI int zoo_get_children(zhandle_t *zh, const char *path, int watch, * This function is similar to \ref zoo_get_children except it allows one specify ZOOAPI int zoo_get_children2(zhandle_t *zh, const char *path, int watch, * This function is similar to \ref zoo_get_children except it allows one specify

I am using the include path:

extern "C" { #include <zookeeper/zookeeper.h> }

and when compiling, -I/usr/local/include and the proper flags -lzookeeper_mt -DTHREADED are used.

I am honestly lost as to what exactly is wrong with my structure.

Read Entire Article