Undefined reference google_private

Hello everyone:
When I use TnesorRT 3.0 in using static libraries, it throws many errors about protobuf, part of the errors are like these:
libnvcaffe_parser.a(ditcaffe.pb.o):ditcaffe.pb.cc:vtable for ditcaffe::Datum: error: undefined reference to ‘google_private::protobuf::Message::SpaceUsed() const’
libnvcaffe_parser.a(ditcaffe.pb.o):ditcaffe.pb.cc:function ditcaffe::BlobShape::MergePartialFromCodedStream(google_private::protobuf::io::CodedInputStream*): error: undefined reference to ‘google_private::protobuf::io::CodedInputStream::PushLimit(int)’

I searched libprotobuf, they only have functions defined in namespace google not google_private, any ideas?


Can you share the full error output? The data file used is expected to live inside the data directory. For more information on protocol buffers, you can read about them here: https://developers.google.com/protocol-buffers/

I solved the problem by using dynamic libs instead of static ones. Thank you!