librdkafka
librdkafka copied to clipboard
Compiling with Visual Studio 2022
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