在ubuntu lucid和maverick上编译scribe2.2与thrift 0.7.0时出错
error while compiling scribe2.2 with thrift 0.7.0 on ubuntu lucid and maverick
在ubuntu上编译scribe server时出现以下错误。
In file included from store.cpp:27:
scribe_server.h:45: error: conflicting return type specified for ‘virtual scribe::thrift::ResultCode scribeHandler::Log(const std::vector<scribe::thrift::LogEntry, std::allocator<scribe::thrift::LogEntry> >&)’
../src/gen-cpp/scribe.h:18: error: overriding ‘virtual scribe::thrift::ResultCode::type scribe::thrift::scribeIf::Log(const std::vector<scribe::thrift::LogEntry, std::allocator<scribe::thrift::LogEntry> >&)’
store.cpp: In member function ‘virtual bool ThriftFileStore::openInternal(bool, tm*)’
我使用scriscribe 2.2与thrift 0.7.0安装thrift时没有错误。
我也在一篇文章中读到这个错误是在使用旧版本的thrift时遇到的。但是我用的是最新版本的thrift
似乎是节俭造成的问题。
解决方案:使用thrift稳定版本逐字复制梁颖怡的话:
"我认为这个问题与最近节俭的变化有关(git的开发版本)。对于如下的thrift代码片段:enum X {…}X foo ();用于生成foo的原型的Thrift:X foo ();但是现在它会生成"X::type foo();",从而导致错误遇到。"
回答这里:http://groups.google.com/group/scribe-server/msg/b17bda3b80706558
相关文章:
- 访问者访问变体并返回不同类型时出错
- 在Linux for Windows上编译C++代码时出错
- 读取文件的最后一行并输入到链接列表时出错
- 重载操作程序时出错>>用于类中的字符串 memebr
- 调用专用模板时出错"no matching function for call to [...]"
- C++-试图将函数指针推回到另一个CPP文件中的矢量时出错
- LINK 尝试使用 OpenSSL evp aes 256 c++ 时出错
- 在Google Kick start中提交时出错
- 在c++中访问int到类对象的映射时出错
- 分段错误当我试图运行程序时出错
- 使用dynamic_cast和构造函数时出错
- CHECK(调用)函数在Google Colab中出错
- 用pybind11包装C++抽象类时出错
- 为x86而非x64编译时出错
- 从R调用C++函数并对其进行集成时出错
- 这个函数哪里出错了
- C++ 创建包含链表和字符串的对象的链接列表时出错
- 编译C 应用程序(Apache Thrift)时出错
- 在ubuntu lucid和maverick上编译scribe2.2与thrift 0.7.0时出错
- 运行cpp thrift生成的代码时出错