This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Problems building 2.0.9/2.0.10 on Windows 10 w/ VS14

0

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%20Harman's gravatar image

Scott Harman
46131319
accept rate: 50%


One Answer:

1

MSVC2015 toolchain is not supported by Wireshark 2.0.X branch. Official versions are built with MSVC2013, so if you install this version it should work.

answered 16 Feb '17, 02:32

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

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.

(19 Feb '17, 22:10) Scott Harman