confluentinc / librdkafka

The Apache Kafka C/C++ library
Other
7.36k stars 3.11k forks source link

Compiling with Visual Studio 2022 #4728

Open inikulshin opened 1 month ago

inikulshin commented 1 month ago

On May 22, 2024 Microsoft released new Windows SDK (https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/)

After installing it I was unable to build win32/build.bat with Visual Studio 2019 and toolset v142:

libucrt.lib(checkcfg.obj) : error LNK2001: unresolved external symbol _guard_check_icall_$fo$

Enabling Visual Studio 2022 with toolset v143 in win32/common.vcxproj resolved the issue it for me:

  <!-- Visual Studio 2022 (17.0) -->
  <PropertyGroup Condition="'$(VisualStudioVersion)' == '17.0'">
    <PlatformToolset>v143</PlatformToolset>
  </PropertyGroup>  

FYI