2.解压,用命令行切换至ProtocolBuffers-2.2.0-Source目录下:
#include,修改如下:
#ifdef __DECCXX // HP C++'s iosfwd doesn't work.
#include
#else
#include
//#include //注释掉这个
#endif
另外,可能还会是其他错误,参考:https://code.google.com/p/protobuf/issues/detail?id=570
![protobuf---真正-- <wbr>在IOS中的使用 protobuf---真正-- <wbr>在IOS中的使用](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![protobuf---真正-- <wbr>在IOS中的使用 protobuf---真正-- <wbr>在IOS中的使用](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![protobuf---真正-- <wbr>在IOS中的使用 protobuf---真正-- <wbr>在IOS中的使用](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![protobuf---真正-- <wbr>在IOS中的使用 protobuf---真正-- <wbr>在IOS中的使用](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![protobuf---真正-- <wbr>在IOS中的使用 protobuf---真正-- <wbr>在IOS中的使用](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
![protobuf---真正-- <wbr>在IOS中的使用 protobuf---真正-- <wbr>在IOS中的使用](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
其他参考:http://www.cnblogs.com/uniy/archive/2011/12/21/2296405.html