Hi,
I’m building Wireshark with VS2013 on Windows 10. I’ve pulled a fresh copy of MASTER. I can’t get it to build. I get:
1> inet_addr.c
1>C:\Development\wireshark\wsutil\inet_addr.c(50): error C2220: warning treated as error - no 'object' file generated
1>C:\Development\wireshark\wsutil\inet_addr.c(50): warning C4013: 'inet_pton' undefined; assuming extern returning int
1>C:\Development\wireshark\wsutil\inet_addr.c(58): warning C4013: 'inet_ntop' undefined; assuming extern returning int
1>C:\Development\wireshark\wsutil\inet_addr.c(58): warning C4047: 'return' : 'const gchar *' differs in levels of indirection from 'int'
1>C:\Development\wireshark\wsutil\inet_addr.c(70): warning C4047: 'return' : 'const gchar *' differs in levels of indirection from 'int'
I can see that inet_pton and inet_ntop are provided by Windows, defined in WS2tcpip.h, e.g.
#if (NTDDI_VERSION >= NTDDI_VISTA)
WINSOCK_API_LINKAGE
INT
WSAAPI
inet_pton(
_In_ INT Family,
_In_ PCSTR pszAddrString,
_Out_writes_bytes_(sizeof(IN6_ADDR)) PVOID pAddrBuf
);
.
.
The include is in C:\Program Files (x86)\Windows Kits\8.1\Include\um
What am I doing wrong?
Cheers…Paul