I don&#39;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 href="mailto:xunlei@renci.org" target="_blank">xunlei@renci.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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    16    error C2059: syntax error : &#39;constant&#39;    C:\Program
Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    390    vtkIO<br>
Error    17    error C2143: syntax error : missing &#39;;&#39; before &#39;}&#39;   
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    443   
vtkIO<br>
Error    18    error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int    C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include\ws2def.h    443    vtkIO<br>
Error    19    error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int    C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include\ws2def.h    443    vtkIO<br>
Error    25    error C2011: &#39;sockaddr_in&#39; : &#39;struct&#39; type
redefinition    C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include\ws2def.h    583    vtkIO<br>
Error    26    error C2011: &#39;fd_set&#39; : &#39;struct&#39; type redefinition   
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h   
132    vtkIO<br>
Error    28    error C2011: &#39;timeval&#39; : &#39;struct&#39; type redefinition   
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h   
176    vtkIO<br>
Error    29    error C2011: &#39;hostent&#39; : &#39;struct&#39; type redefinition   
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h   
232    vtkIO<br>
Error    30    error C2011: &#39;netent&#39; : &#39;struct&#39; type redefinition   
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h   
245    vtkIO<br>
Error    31    error C2011: &#39;servent&#39; : &#39;struct&#39; type redefinition   
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h   
252    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 href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>
</div>