Git Product home page Git Product logo

Comments (2)

holmes1412 avatar holmes1412 commented on May 23, 2024

你好~srpc除了会用到protoc进行代码生成以外,编译lib期间需要依赖libprotobuf.so。

可以看看你本地的protobuf库是什么版本吗?

进一步讲述一下这个问题:snappy-1.1.9的某两个类是-no-rtti,我们派生了它们因此srpc里的rpc_compress_snappy.cc文件也是no-rtti,其他文件是没有的。但是先前有遇到过和最新版protobuf一起编译的时候,出现类似“/usr/local/include/google/protobuf/arena.h:599:15: error: cannot use ‘typeid’ with ‘-fno-rtti’ 599 | AllocHook(RTTI_TYPE_ID(T), n); |”的错误。因此才比较怀疑你的libprotobuf版本比较高。

麻烦确认下、换个适中的版本(比如3.11.4就挺好),然后再试试~

from srpc.

CarlLyt avatar CarlLyt commented on May 23, 2024

libprotobuf 的版本是:/usr/local/lib/libprotobuf.so.22
protobuf的可执行文件和链接库都是从git仓库源码编译的,在编译之前已经讲原有的 protobuf2 和 protofbuf3都删除了。

from srpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.