Forum Discussion
SChandru
May 28, 2024Copper Contributor
unresolved external symbol __imp__getaddrinfo@16
Hi,
I am reaching out to everyone in the community to check this error I am facing. I have included all the necessary headers and pre-proc directives to use getaddrinfo. But my compiler still shows error. I am using Windows Server 2022, with Visual Studio Enterprise 2022 and Windows SDK version 10.0.22621.0. Can you please help me understand why is still this error occurring.
#define WIN32_LEAN_AND_MEAN
#include <Ws2tcpip.h>
#include <stdio.h>
// Link with ws2_32.lib
#pragma comment(lib, "Ws2_32.lib")
No RepliesBe the first to reply