WinCE + Lnk2019 + WinSocket
Hej!Jeg har følgende mærkelige fejl, hvorfor får jeg dem i denne kode
#include <Winsock2.h>
#include <WS2TCPIP.H>
error LNK2019: unresolved external symbol getaddrinfo referenced in function "struct addrinfo * __cdecl TCPIP_ResolveAddress(char *,char *,int,int,int)" (?TCPIP_ResolveAddress@@YAPAUaddrinfo@@PAD0HHH@Z)
----------------------------------------------------------------
struct addrinfo* TCPIP_ResolveAddress( CHAR *addr, CHAR *port, int af, int type, int proto ){
struct addrinfo hints, *aiResolved = NULL;
int rc;
ZeroMemory( &hints, sizeof( hints ) );
hints.ai_flags = ((addr)?0:AI_PASSIVE );
hints.ai_family = af;
hints.ai_socktype = type;
hints.ai_protocol = proto;
rc = getaddrinfo( addr, port, &hints, &aiResolved );
if( rc )return NULL;
return aiResolved;
}