<!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>
Could any one please help? Thanks a lot.<br>
Best,<br>
xunlei<br>
<br>
On 6/2/2010 7:25 PM, Dr. X wrote:
<blockquote cite="mid:4C06E85C.1000401@renci.org" type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
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 : 'constant' C:\Program
Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h 390 vtkIO<br>
Error 17 error C2143: syntax error : missing ';' before '}'
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: 'sockaddr_in' : 'struct' type
redefinition C:\Program Files\Microsoft
SDKs\Windows\v7.1\Include\ws2def.h 583 vtkIO<br>
Error 26 error C2011: 'fd_set' : 'struct' type redefinition
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h
132 vtkIO<br>
Error 28 error C2011: 'timeval' : 'struct' type redefinition
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h
176 vtkIO<br>
Error 29 error C2011: 'hostent' : 'struct' type redefinition
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h
232 vtkIO<br>
Error 30 error C2011: 'netent' : 'struct' type redefinition
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h
245 vtkIO<br>
Error 31 error C2011: 'servent' : 'struct' 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 <windows.h> there is
#include <WinSock2.h>. 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>
</blockquote>
<br>
</body>
</html>