错误信息如下:
../../../include/zookeeper/recordio.h:70: error:expected unqualified-id before ‘__extension__’
../../../include/zookeeper/recordio.h:70: error:expected `)' before ‘__extension__’
../../.. /include/zookeeper/recordio.h:70: error:expected unqualified-id before ‘)’ token
根据http://blog.csdn.net/falcon2000/article/details/6895784的说法,似乎可以吧zookeeper.h作为第一个include来解决,但是经过试验,还是无法解决。
但是他说的第二个方法,将
int64_t htonll(int64_t v); 替换成如下的代码确实是可以的
- #ifndef htonll
- int64_t htonll(int64_t v);
- #endif
阅读(3292) | 评论(1) | 转发(0) |