Hi guys I've just upgraded my work laptop to Windows 10, and have reset my build environment, and after successfully building 2.2.4 (and having a couple of minor kinks to work out) I've decided to go back and build 2.0.9 or 2.0.10 I'm consistently getting the following error when building the solution
88>ClCompile:
capture_preferences_frame.cpp
112>C:\Program Files (x86)\Windows Kits\8.1\Include\um\ws2tcpip.h(560): error C2373: 'ws_inet_pton': redefinition; different type modifiers (compiling source file C:\Wireshark\wireshark-2.0.9\epan\addr_resolv.c) [C:\Wireshark\build32\epan\epan.vcxproj]
C:\Wireshark\wireshark-2.0.9\wsutil/inet_v6defs.h(42): note: see declaration of 'ws_inet_pton' (compiling source file C:\Wireshark\wireshark-2.0.9\epan\addr_resolv.c)
112>C:\Program Files (x86)\Windows Kits\8.1\Include\um\ws2tcpip.h(576): error C2373: 'ws_inet_ntop': redefinition; different type modifiers (compiling source file C:\Wireshark\wireshark-2.0.9\epan\addr_resolv.c) [C:\Wireshark\build32\epan\epan.vcxproj]
C:\Wireshark\wireshark-2.0.9\wsutil/inet_v6defs.h(44): note: see declaration of 'ws_inet_ntop' (compiling source file C:\Wireshark\wireshark-2.0.9\epan\addr_resolv.c)
asn1.c
105>ClCompile:
proto_tree_model.c
113>Link:
Any ideas on what's going on with this? It's a bit unusual that both 2.0.9 and 2.0.10 have the issue on windows. Cheers
asked 15 Feb '17, 20:01
Scott Harman
46●13●13●19
accept rate: 50%
More info here https://ask.wireshark.org/questions/49976/vs2015-error-c2220-define-ws_inet_pton-not-found
Yeah - I'm an idiot. Previous laptop had both products on there, and only used MSVC2013 for building wireshark and nothing else. Forgot I'd done that.