[vtkusers] vtkDataArrayTemplate.txx 64 bit error
Flaviu2
flaviu2 at yahoo.com
Fri Sep 1 06:40:42 EDT 2017
Hi VTK users. I encountered an strange error, willing to compile my MFC project which have VTK inside.
I am using VTK 6.1, in an VS2008 project, on Win10.
The project work fine compiled on 32 bit, with VTK 6.1 compiled on 32 bit. Soon as I have compiled my project on 64 bit (and also VTK on 64), I get the following errors:
1>MainFrm.cpp
1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error C2589: '(' : illegal token on right side of '::'
1> c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(454) : while compiling class template member function 'void vtkDataArrayTemplate<T>::InsertTuples(vtkIdList *,vtkIdList *,vtkAbstractArray *)'
1> with
1> [
1> T=unsigned char
1> ]
1> c:\program files\vtk\include\vtk-6.1\vtkUnsignedCharArray.h(41) : see reference to class template instantiation 'vtkDataArrayTemplate<T>' being compiled
1> with
1> [
1> T=unsigned char
1> ]
1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error C2059: syntax error : '::'
1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error C2589: '(' : illegal token on right side of '::'
1> c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(454) : while compiling class template member function 'void vtkDataArrayTemplate<T>::InsertTuples(vtkIdList *,vtkIdList *,vtkAbstractArray *)'
1> with
1> [
1> T=int
1> ]
1> c:\program files\vtk\include\vtk-6.1\vtkIntArray.h(41) : see reference to class template instantiation 'vtkDataArrayTemplate<T>' being compiled
1> with
1> [
1> T=int
1> ]
1>c:\program files\vtk\include\vtk-6.1\vtkDataArrayTemplate.txx(478) : error C2059: syntax error : '::'
Do you experienced with this error ? Or, can you tell me what if the cause of this strange error ? And how can I solve this ?
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170901/46a26363/attachment.html>
More information about the vtkusers
mailing list