-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Description
Describe the bug
When latest grpc is trying to be consumed against C++17 project it yields linker errors related to abseil and protobuf.
Environment
- OS: Windows
- Compiler: Visual Studio 2022 version 17.12 - MSVC 19.42.34444 for x86
To Reproduce
Steps to reproduce the behavior:
- ./vcpkg install grpc
- Build simple project with C++17 using grpc
- Observe linker issues as shown below:
Failure logs
error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl absl::lts_20250814::lstrcatA(class absl::lts_20250814::AlphaNum const &,class absl::lts_20250814::AlphaNum const &)" (?lstrcatA@lts_20250814@absl@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVAlphaNum@12@0@Z) referenced in function "class grpc::Status __cdecl grpc::GenericSerialize<class grpc::ProtoBufferWriter,class google::protobuf::MessageLite>(class google::protobuf::MessageLite const &,class grpc::ByteBuffer *,bool *)" (??$GenericSerialize@VProtoBufferWriter@grpc@@VMessageLite@protobuf@google@@@grpc@@YA?AVStatus@0@ABVMessageLite@protobuf@google@@PAVByteBuffer@0@PA_N@Z)
error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl absl::lts_20250814::lstrcatA(class absl::lts_20250814::AlphaNum const &,class absl::lts_20250814::AlphaNum const &)" (?lstrcatA@lts_20250814@absl@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVAlphaNum@12@0@Z)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels