Hi Dave,
I tried it with both 6.0A and 7.1 SDK by running a tool coming with the
SDK. But the compilation problem stays.
Best,
x
On 6/4/2010 12:52 PM, Dave Partyka wrote:
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 <[email protected]
<mailto:[email protected]>> 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 <http://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
_______________________________________________
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