[Paraview] Fail to build vtkIO in 3.8.0 on Windows7 64bit MSVC2008
Dave Partyka
dave.partyka at kitware.com
Fri Jun 4 12:52:29 EDT 2010
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.
That said, ParaView should compile fine with Visual Stodio 2008 or 2010
using the appropriate SDK.
On Wed, Jun 2, 2010 at 7:25 PM, Dr. X <xunlei at renci.org> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100604/13e35606/attachment.htm>
More information about the ParaView
mailing list