protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

protobuf src examples make error

Open CYuSir opened this issue 3 years ago • 1 comments

➜ examples git:(main) ✗ make
[ 12%] Running cpp protocol buffer compiler on addressbook.proto [ 12%] Building CXX object CMakeFiles/add_person_cpp.dir/add_person.cc.o [ 12%] Building CXX object CMakeFiles/add_person_cpp.dir/addressbook.pb.cc.o [ 12%] Linking CXX executable add_person_cpp /usr/bin/ld: CMakeFiles/add_person_cpp.dir/addressbook.pb.cc.o: in function google::protobuf::internal::VerifyUTF8(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*, char const*)': addressbook.pb.cc:(.text._ZN6google8protobuf8internal10VerifyUTF8EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc[_ZN6google8protobuf8internal10VerifyUTF8EPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKc]+0x37): undefined reference to google::protobuf::internal::VerifyUTF8(std::basic_string_view<char, std::char_traits >, char const*)' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/add_person_cpp.dir/build.make:169:add_person_cpp] 错误 1 make[1]: *** [CMakeFiles/Makefile2:85:CMakeFiles/add_person_cpp.dir/all] 错误 2 make: *** [Makefile:91:all] 错误 2 ➜ examples git:(main) ✗

CYuSir avatar Dec 07 '22 10:12 CYuSir

Need further details on reproducing please.

esorot avatar Dec 09 '22 20:12 esorot

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Dec 26 '23 10:12 github-actions[bot]

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.

This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.

github-actions[bot] avatar Jan 10 '24 10:01 github-actions[bot]