title: Errors and Warnings while building Wireshark
body: <p>I am trying to build Wireshark on Windows by following the steps given here - <a href="https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html" rel="nofollow noreferrer">https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html</a> . But I am running into weird errors and warning during building Wireshark. The errors I am getting are described below. </p>
  
  <pre><code> "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) -&gt;
     "C:\Development\wsbuild64\text2pcap.vcxproj.metaproj" (default target) (44) -&gt;
     "C:\Development\wsbuild64\text2pcap.vcxproj" (default target) (90) -&gt;
     (ClCompile target) -&gt;
       C:/Development/wsbuild64/text2pcap-scanner.c(993): error C2220: warning treated as error - no 'object' file ge
     nerated [C:\Development\wsbuild64\text2pcap.vcxproj]
  
  
     "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) -&gt;
     "C:\Development\wsbuild64\wiretap\wiretap.vcxproj.metaproj" (default target) (56) -&gt;
     "C:\Development\wsbuild64\wiretap\wiretap.vcxproj" (default target) (87) -&gt;
       C:/Development/wsbuild64/wiretap/ascend.c(429): error C2220: warning treated as error - no 'object' file gener
     ated [C:\Development\wsbuild64\wiretap\wiretap.vcxproj]
  </code></pre>
  
  <p>I am also getting some warnings which are described below. </p>
  
  <pre><code>"C:\Development\wsbuild64\Wireshark.sln" (default target) (1) -&gt;
     "C:\Development\wsbuild64\text2pcap.vcxproj.metaproj" (default target) (44) -&gt;
     "C:\Development\wsbuild64\text2pcap.vcxproj" (default target) (90) -&gt;
     (ClCompile target) -&gt;
       C:/Development/wsbuild64/text2pcap-scanner.c(993): warning C4003: not enough arguments for function-like macro
      invocation 'text2pcap_wrap' [C:\Development\wsbuild64\text2pcap.vcxproj]
  
  
     "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) -&gt;
     "C:\Development\wsbuild64\wiretap\wiretap.vcxproj.metaproj" (default target) (56) -&gt;
     "C:\Development\wsbuild64\wiretap\wiretap.vcxproj" (default target) (87) -&gt;
       C:/Development/wsbuild64/wiretap/ascend.c(429): warning C4273: 'malloc': inconsistent dll linkage [C:\Developm
     ent\wsbuild64\wiretap\wiretap.vcxproj]
       C:/Development/wsbuild64/wiretap/ascend.c(436): warning C4273: 'free': inconsistent dll linkage [C:\Developmen
     t\wsbuild64\wiretap\wiretap.vcxproj]
  </code></pre>
  
  <p>I tried building the thing by using the following command so that I do not get the warning as an error. But I still get the same error and the build fails - </p>
  
  <pre><code>msbuild /m /warnasmessage:C2220 /p:Configuration=RelWithDebInfo Wireshark.sln
  </code></pre>
  
  <p>What can be done in this case?</p>