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, 20:01

Scott%20Harman's gravatar image

Scott Harman
419917
accept rate: 50%


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.

link

answered 16 Feb, 02:32

Pascal%20Quantin's gravatar image

Pascal Quantin
5.1k655
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, 22:10) Scott Harman
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×100
×23
×8
×7

Asked: 15 Feb, 20:01

Seen: 132 times

Last updated: 19 Feb, 22:10

p​o​w​e​r​e​d by O​S​Q​A