<!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 Dave,<br>
I tried it with both 6.0A and 7.1 SDK by running a tool coming with the
SDK. But the compilation problem stays.<br>
<br>
Best,<br>
x<br>
<br>
On 6/4/2010 12:52 PM, Dave Partyka wrote:
<blockquote
 cite="mid:AANLkTinUruTh4YD4RGJinv4GCj9a8tORVFgGU6kz4rWb@mail.gmail.com"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
I don't think changing the SDK that Visual Studio is using is
supported. VS 2008 uses the 6.0A SDK. If you want to use the 7.1 SDK
then you probably need to use VS 2010. I suspect there are
configuration checks that CMake assumes if VS 2008 then use SDK 6.0A
conventions.
  <div><br>
  </div>
  <div>That said, ParaView should compile fine with Visual Stodio 2008
or 2010 using the appropriate SDK.<br>
  <br>
  <div class="gmail_quote">On Wed, Jun 2, 2010 at 7:25 PM, Dr. X <span
 dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:xunlei@renci.org"
 target="_blank">xunlei@renci.org</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div 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>
    </div>
    <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
    <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
    <br>
Please keep messages on-topic and check the ParaView Wiki at: <a
 moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView"
 target="_blank">http://paraview.org/Wiki/ParaView</a><br>
    <br>
Follow this link to subscribe/unsubscribe:<br>
    <a moz-do-not-send="true"
 href="http://www.paraview.org/mailman/listinfo/paraview"
 target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  </div>
</blockquote>
<br>
</body>
</html>