ZooKeeper C用戶端編譯錯誤 - 功夫Panda - 部落格園
ZooKeeper C用戶端編譯錯誤
編寫zookeeper用戶端程式出現以下編譯錯誤:
/usr/local/include/zookeeper/recordio.h:76: error: expected unqualified-id before ‘__extension__’
/usr/local/include/zookeeper/recordio.h:76: error: expected ‘)’ before ‘__extension__’
/usr/local/include/zookeeper/recordio.h:76: error: expected unqualified-id before ‘)’ token
解決方案在http://blog.csdn.net/falcon2000/article/details/6895784
recordio.h:76 聲明了htonll函數,其他檔案可能對htonll做了宏定義,修改如下:
#ifndef htonllint64_t htonll(int64_t v);#endif
編寫zookeeper用戶端程式出現以下編譯錯誤:
/usr/local/include/zookeeper/recordio.h:76: error: expected unqualified-id before ‘__extension__’
/usr/local/include/zookeeper/recordio.h:76: error: expected ‘)’ before ‘__extension__’
/usr/local/include/zookeeper/recordio.h:76: error: expected unqualified-id before ‘)’ token
解決方案在http://blog.csdn.net/falcon2000/article/details/6895784
recordio.h:76 聲明了htonll函數,其他檔案可能對htonll做了宏定義,修改如下:
#ifndef htonllint64_t htonll(int64_t v);#endif