Код: Выделить всё
ret = zoo_get(zh, (std::string("/services/") + server_node).c_str(), 0, buf, &len, nullptr);
ошибка: «zoo_get» не был объявлен в этой области; вы имели в виду «zoo_aget»?
Я проверил, что библиотеки не повреждены командой grep:
Код: Выделить всё
> 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
Код: Выделить всё
extern "C"
{
#include
}
Честно говоря, я не понимаю, что именно не так с моей структурой.>
Подробнее здесь: https://stackoverflow.com/questions/799 ... ude-errors
Мобильная версия