[Paraview] Build bug on Windows
Dr. X
xunlei at renci.org
Mon Sep 6 16:46:13 EDT 2010
Hi All,
The default build of Xdmf.vcproj have the following bugs:
====================================================
Errors:
Error 326 error C2146: syntax error : missing ';' before identifier 'fd'
d:\mysql5.1\include\mysql_com.h 243 Xdmf
Error 327 error C4430: missing type specifier - int assumed. Note: C++
does not support default-int d:\mysql5.1\include\mysql_com.h 243 Xdmf
Error 328 error C4430: missing type specifier - int assumed. Note: C++
does not support default-int d:\mysql5.1\include\mysql_com.h 243 Xdmf
Error 329 error C2065: 'SOCKET' : undeclared identifier
d:\mysql5.1\include\mysql_com.h 427 Xdmf
Error 330 error C2146: syntax error : missing ')' before identifier 's'
d:\mysql5.1\include\mysql_com.h 427 Xdmf
Error 331 error C2059: syntax error : ')'
d:\mysql5.1\include\mysql_com.h 428 Xdmf
Fix:
Add the following lines in d:\mysql5.1\include\mysql_com.h
#if defined(__WIN__)
#include <WinSock2.h>
#endif /* __WIN__ */
====================================================
Errors:
Error 3 error LNK2005: _amsg_exit already defined in
MSVCRTD.lib(MSVCR90D.dll) LIBCMT.lib Xdmf
Error 4 error LNK2005: _initterm_e already defined in
MSVCRTD.lib(MSVCR90D.dll) LIBCMT.lib Xdmf
Error 5 error LNK2005: exit already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMT.lib Xdmf
...
Fix:
Add "libcmt" in Xdmf Property Pages -> Configuration Properties ->
Linker -> Input -> Ignore Specific Library for both Debug and Release build.
For the libcmt errors, how can I patch the corresponding CMakeLists.txt
file? Thanks a lot.
Best,
x
More information about the ParaView
mailing list