Skip to content

[abseil] Issues when linking against grpc version 1.76.0 #50253

@thierry-desbiens

Description

@thierry-desbiens

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:

  1. ./vcpkg install grpc
  2. Build simple project with C++17 using grpc
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions