[vtkusers] Compile error VTK 7.0.0 + VS2008 x86 + Xdmf2
Paul Melis
paul.melis at surfsara.nl
Fri Oct 7 09:44:16 EDT 2016
Hi,
It seems something goes wrong relating to detection/sizeof the 64-bit integer type when compiling VTK 7.0.0 with VS 2008 x64 (or more precisely Microsoft Visual C++ Compiler for Python 2.7, which basically is a stripped version of VS2008):
[ 38%] Building CXX object ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeFiles/vtkxdmf2.
dir/XdmfArray.cxx.obj
XdmfArray.cxx
D:\Build\vtk-7.0.0-win64-py27\ThirdParty\xdmf2\vtkxdmf2\libsrc\XdmfConfig.h(118)
: fatal error C1189: #error : "64 bit long not defined"
NMAKE : fatal error U1077: 'C:\Users\Opti\AppData\Local\Programs\Common\MICROS~1
\VISUAL~1\9.0\VC\bin\amd64\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso
ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Users\Opti\AppData\Local\Programs\Common\Microso
ft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.
The relevant piece from XdmfConfig.h where the error above comes from is:
#if defined( SIZEOF_LONG_LONG )
# define XDMF_64_INT long long
# define HAVE_64_INT
# define XDMF_have_64_bit_int
#elif defined( SIZEOF___INT64 )
# define XDMF_64_INT __int64
# define HAVE_64_INT
#else
# error "64 bit long not defined"
#endif
I don't see where SIZEOF_LONG_LONG or SIZEOF__INT64 should come from in this case. Any clues where to check?
Regards,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161007/9186caa2/attachment.html>
More information about the vtkusers
mailing list