-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Description
What version of protobuf and what language are you using?
Version: v32.0 built from code
Language: C++
What operating system (Linux, Windows, ...) and version?
Windows
What runtime / compiler are you using (e.g., python version or gcc version)
Visual Studio 22
ISO C++ 20
Windows SDK 10.0
Unicode
What did you do?
Steps to reproduce the behavior:
- Built protobuf from code
- Tried to compile and link generated code
- Got 5 unresolved externals
What did you expect to see
No linker errors
What did you see instead?
error LNK2001: unresolved external symbol "private: void __cdecl absl::lts_20250512::log_internal::LogMessage::CopyToEncodedBuffer<0>(class absl::lts_20250512::string_view)" (??$CopyToEncodedBuffer@$0A@@LogMessage@log_internal@lts_20250512@absl@@AEAAXVstring_view@23@@z)
error LNK2001: unresolved external symbol "private: unsigned char * __cdecl google::protobuf::io::EpsCopyOutputStream::WriteStringMaybeAliasedOutline(unsigned int,class absl::lts_20250512::string_view,unsigned char *)" (?WriteStringMaybeAliasedOutline@EpsCopyOutputStream@io@protobuf@google@@AEAAPEAEIVstring_view@lts_20250512@absl@@peae@Z)
error LNK2001: unresolved external symbol "public: void __cdecl google::protobuf::internal::ArenaStringPtr::Set(class absl::lts_20250512::string_view,class google::protobuf::Arena *)" (?Set@ArenaStringPtr@internal@protobuf@google@@QEAAXVstring_view@lts_20250512@absl@@PEAVArena@34@@z)
error LNK2001: unresolved external symbol "public: static bool __cdecl google::protobuf::internal::WireFormatLite::VerifyUtf8String(char const *,int,enum google::protobuf::internal::WireFormatLite::Operation,class absl::lts_20250512::string_view)" (?VerifyUtf8String@WireFormatLite@internal@protobuf@google@@SA_NPEBDHW4Operation@1234@Vstring_view@lts_20250512@absl@@@z)
error LNK2019: unresolved external symbol "private: unsigned char * __cdecl google::protobuf::io::EpsCopyOutputStream::WriteStringOutline(unsigned int,class absl::lts_20250512::string_view,unsigned char *)" (?WriteStringOutline@EpsCopyOutputStream@io@protobuf@google@@AEAAPEAEIVstring_view@lts_20250512@absl@@peae@Z) referenced in function "public: unsigned char * __cdecl google::protobuf::io::EpsCopyOutputStream::WriteString<class std::basic_string<char,struct std::char_traits,class std::allocator > >(unsigned int,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,unsigned char *)" (??$WriteString@V?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@EpsCopyOutputStream@io@protobuf@google@@QEAAPEAEIAEBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@peae@Z)
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment