[Paraview] Fail to build vtkIO in 3.8.0 on Windows7 64bit MSVC2008

Dr. X xunlei at renci.org
Fri Jun 4 12:19:34 EDT 2010


Hi All,
Could any one please help? Thanks a lot.
Best,
xunlei

On 6/2/2010 7:25 PM, Dr. X wrote:
> Hi All,
> I am building ParaView 3.8.0 from source on a Windows7 64bit machine 
> with MSVC2008 and Windows SDK7.1.
> 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:
> ---------------------
> Error    16    error C2059: syntax error : 'constant'    C:\Program 
> Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    390    vtkIO
> Error    17    error C2143: syntax error : missing ';' before '}'    
> C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\ws2def.h    
> 443    vtkIO
> 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
> 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
> Error    25    error C2011: 'sockaddr_in' : 'struct' type 
> redefinition    C:\Program Files\Microsoft 
> SDKs\Windows\v7.1\Include\ws2def.h    583    vtkIO
> Error    26    error C2011: 'fd_set' : 'struct' type redefinition    
> C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    
> 132    vtkIO
> Error    28    error C2011: 'timeval' : 'struct' type redefinition    
> C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    
> 176    vtkIO
> Error    29    error C2011: 'hostent' : 'struct' type redefinition    
> C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    
> 232    vtkIO
> Error    30    error C2011: 'netent' : 'struct' type redefinition    
> C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    
> 245    vtkIO
> Error    31    error C2011: 'servent' : 'struct' type redefinition    
> C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinSock2.h    
> 252    vtkIO
> ---------------------
>
> 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.
>
> Best,
> x
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100604/34994609/attachment.htm>


More information about the ParaView mailing list