[vtkusers] upgrade vtk from vtk 5.0 to 5.8

Gishara Indeewarie gish.777 at gmail.com
Fri Jun 22 06:33:00 EDT 2012


Hi all,

I want to upgrade vtk version of my project from 5.0 to 5.8. When I tried
to link vtk 5.8 I get erors as follow:

C:\VTK_New\include\vtk-5.8\vtkSmartPointer.h(43) : error C2664:
'vtkSmartPointer<T>::CheckType' : cannot convert parameter 1 from
'vtkScalarBarActor *' to 'vtkScalarBarWidget *'
1>        with
1>        [
1>            T=vtkScalarBarWidget
1>        ]
1>        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
1>        .\vtk\vtkPBFEAView.cpp(313) : see reference to function template
instantiation 'vtkSmartPointer<T>::vtkSmartPointer<vtkScalarBarActor>(const
vtkSmartPointer<vtkScalarBarActor> &)' being compiled
1>        with
1>        [
1>            T=vtkScalarBarWidget
1>        ]
1>C:\VTK_New\include\vtk-5.8\vtkSmartPointer.h(60) : error C2664:
'vtkSmartPointer<T>::CheckType' : cannot convert parameter 1 from
'vtkScalarBarWidget *' to 'vtkScalarBarActor *'
1>        with
1>        [
1>            T=vtkScalarBarActor
1>        ]
1>        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
1>        .\vtk\vtkPBFEAView.cpp(1952) : see reference to function template
instantiation 'vtkSmartPointer<T> &vtkSmartPointer<T>::operator
=<vtkScalarBarWidget>(const vtkSmartPointer<vtkScalarBarWidget> &)' being
compiled
1>        with
1>        [
1>            T=vtkScalarBarActor
1>        ]

Can anyone tell me the reason for these errors and how to fix them.
Thanks a lot.


-- 
Gish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120622/dbd84f4a/attachment.htm>


More information about the vtkusers mailing list