<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi All,<br>
I am building ParaView 3.8.0 from source on a Windows7 64bit machine
with MSVC2008 and Windows SDK7.1.<br>
I ran into a lot of compilation errors regarding redefinitions in
ws2def.h and WinSock2.h. Here are some of these errors in vtkIO project:<br>
---------------------<br>
Error&nbsp;&nbsp;&nbsp; 16&nbsp;&nbsp;&nbsp; error C2059: syntax error : 'constant'&nbsp;&nbsp;&nbsp; C:\Program
Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h&nbsp;&nbsp;&nbsp; 390&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 17&nbsp;&nbsp;&nbsp; error C2143: syntax error : missing ';' before '}'&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h&nbsp;&nbsp;&nbsp; 443&nbsp;&nbsp;&nbsp;
vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 18&nbsp;&nbsp;&nbsp; error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include\ws2def.h&nbsp;&nbsp;&nbsp; 443&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 19&nbsp;&nbsp;&nbsp; error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include\ws2def.h&nbsp;&nbsp;&nbsp; 443&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 25&nbsp;&nbsp;&nbsp; error C2011: 'sockaddr_in' : 'struct' type
redefinition&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include\ws2def.h&nbsp;&nbsp;&nbsp; 583&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 26&nbsp;&nbsp;&nbsp; error C2011: 'fd_set' : 'struct' type redefinition&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h&nbsp;&nbsp;&nbsp;
132&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 28&nbsp;&nbsp;&nbsp; error C2011: 'timeval' : 'struct' type redefinition&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h&nbsp;&nbsp;&nbsp;
176&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 29&nbsp;&nbsp;&nbsp; error C2011: 'hostent' : 'struct' type redefinition&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h&nbsp;&nbsp;&nbsp;
232&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 30&nbsp;&nbsp;&nbsp; error C2011: 'netent' : 'struct' type redefinition&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h&nbsp;&nbsp;&nbsp;
245&nbsp;&nbsp;&nbsp; vtkIO<br>
Error&nbsp;&nbsp;&nbsp; 31&nbsp;&nbsp;&nbsp; error C2011: 'servent' : 'struct' type redefinition&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h&nbsp;&nbsp;&nbsp;
252&nbsp;&nbsp;&nbsp; vtkIO<br>
---------------------<br>
<br>
I have made sure before every #include &lt;windows.h&gt; there is
#include &lt;WinSock2.h&gt;. But that did not mitigate the problem. Can
anyone help please? Thanks a lot.<br>
<br>
Best,<br>
x<br>
<font face="Calibri, Verdana, Helvetica, Arial"><span
 style="font-size: 11pt;"></span></font>
<br>
</body>
</html>