[vtkusers] upgrade vtk from vtk 5.0 to 5.8

David Doria daviddoria at gmail.com
Fri Jun 22 07:01:55 EDT 2012


On Fri, Jun 22, 2012 at 6:33 AM, Gishara Indeewarie <gish.777 at gmail.com> wrote:
> 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

Can you show us the code that is generating these errors?

David



More information about the vtkusers mailing list