/usr/bin/ld: /usr/local/lib/libprotoc.a(plugin.pb.o):(.data.rel.ro+0x20): undefined reference to `google::protobuf::Message::CopyWithSourceCheck(google::protobuf::Message&, google::protobuf::Message const&)

196 views
Skip to first unread message

Chen书生

unread,
Aug 24, 2023, 7:14:02 AM8/24/23
to Protocol Buffers
when I compile protobuf 3.21.7 with the following commands:
$ PROTOBUF_VERSION=21.7
$ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protobuf-all-$PROTOBUF_VERSION.tar.gz
$ tar xzf protobuf-all-$PROTOBUF_VERSION.tar.gz
$ cd protobuf-$PROTOBUF_VERSION
$ ./configure --disable-shared --with-pic
$ make   # You may want to pass -j to make this run faster; see make --help
$ sudo make install

after compiling,  why so many function is undefined?
nm /usr/local/lib/libprotoc.a|grep CopyWithSourceCheck U _ZN6google8protobuf7Message19CopyWithSourceCheckERS1_RKS1_



Reply all
Reply to author
Forward
0 new messages