Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1008006
  • 博文数量: 87
  • 博客积分: 3324
  • 博客等级: 中校
  • 技术积分: 1003
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-17 11:37
文章分类

全部博文(87)

文章存档

2014年(3)

2013年(5)

2012年(21)

2011年(13)

2010年(7)

2009年(9)

2008年(4)

2007年(14)

2006年(11)

分类: C/C++

2012-05-16 09:58:56

错误信息如下:
 
../../../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); 替换成如下的代码确实是可以的

  1. #ifndef htonll  
  2. int64_t htonll(int64_t v);
  3. #endif 

阅读(3216) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

桔色花朵2012-05-16 21:21:39

恩恩,先记下来~虽然没遇到过。。。