功夫Panda

记录一些遇到的问题

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

编写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 htonll
int64_t htonll(int64_t v);
#endif

 

posted on 2012-11-14 16:01  功夫Panda  阅读(1387)  评论(0编辑  收藏  举报