Hmm, those functions are defined in libprotobuf.a. Can you double check if
the protobuf library is found by cmake? Probably ask the question on cmake
support forum as well.
On Monday, October 2, 2017 at 2:33:04 AM UTC-7, Andy wrote:
>
> Compilation CMake give me errors:
> ...
> /usr/src/hbase/hbase-native-client/fastnative/../libs/libif.a(ClusterStatus.pb.cc.o):(.rodata._ZTVN5hbase2pb18RegionInTransitionE[_ZTVN5hbase2pb18RegionInTransitionE]+0x60):
>
> undefined reference to
> `google::protobuf::Message::CheckTypeAndMergeFrom(google::protobuf::MessageLite
>
> const&)'
> /usr/src/hbase/hbase-native-client/fastnative/../libs/libif.a(ClusterStatus.pb.cc.o):(.rodata._ZTVN5hbase2pb18RegionInTransitionE[_ZTVN5hbase2pb18RegionInTransitionE]+0xa8):
>
> undefined reference to `google::protobuf::Message::DiscardUnknownFields()'
> /usr/src/hbase/hbase-native-client/fastnative/../libs/libif.a(ClusterStatus.pb.cc.o):(.rodata._ZTVN5hbase2pb18RegionInTransitionE[_ZTVN5hbase2pb18RegionInTransitionE]+0xb0):
>
> undefined reference to `google::protobuf::Message::SpaceUsed() const
> ....
> I add libprotobuf.a (or protobuf) to CMake's target_link_libraries:
> add_executable(fastnative ${SOURCE_FILES})
>
> target_link_libraries(fastnative
> double-conversion
> boost_regex
> boost_context
> boost_thread
> boost_system
> boost_filesystem
> boost_program_options
> boost_chrono
> gflags
> glog
> libprotobuf.a
> libfolly.a
> wangle
> pthread
> client
> conf
> connection
> if
> )
>
>
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.