Undefined reference to google::protobuf::internal::empty_string_[abi:cxx11]

前端 未结 3 1695
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 07:11

I\'m trying to build simple test application with Protocol Buffers 2.6.1 and GNU GCC 5.1.0 (on Ubuntu 14.10) and I get following errors:

/home/ragnar/cpp-too         


        
3条回答
  •  被撕碎了的回忆
    2020-12-03 08:03

    I had a similar problem, that was caused by the fact that I compiled the protobuf library with GNU's libstdc++, but in the application I was using Clang's libc++, and the two don't work together.

    It all became clear once I used ldd to see what shared objects that file depends on.

提交回复
热议问题