Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Compiling errors--data type mismatched

Subject: CGAL users discussion list

List archive

[cgal-discuss] Compiling errors--data type mismatched


Chronological Thread 
  • From: <>
  • To:
  • Subject: [cgal-discuss] Compiling errors--data type mismatched
  • Date: Tue, 25 May 2010 07:52:39 +0200 (CEST)

Hi, everyone!
When I try the demo case: image_to_vtk_viewer, the compiling errors are the
following:

(936). Save the file in Unicode format to prevent data loss
1>C:\Program Files\CGAL-3.6\include\CGAL/Image_3_vtk_interface.h(114) : error
C2664: 'void vtkIntArray::SetArray(int

*,vtkIdType,int)' : cannot convert parameter 1 from 'Word *' to 'int *'
1> Types pointed to are unrelated; conversion requires
reinterpret_cast,
C-style cast or function-style cast
1>C:\Program Files\CGAL-3.6\include\CGAL/Image_3_vtk_interface.h(114) : error
C2664: 'void vtkUnsignedIntArray::SetArray

(unsigned int *,vtkIdType,int)' : cannot convert parameter 1 from 'Word *' to
'unsigned int *'

Obviously, the errors means that data types mismatched. By replacing the
"Word
*" with specific type, for example,"double*,
I learned the boost::uint8/16/32_t could not find a appropriate int type. Then
I comment all boost type. However, other
errors would turn out. Please help me to handle the errors.
Thanks!


  • [cgal-discuss] Compiling errors--data type mismatched, gjywhu, 05/25/2010

Archive powered by MHonArc 2.6.16.

Top of Page