Hi all,<div><br></div><div>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:</div><div><br></div><div><div>C:\VTK_New\include\vtk-5.8\vtkSmartPointer.h(43) : error C2664: 'vtkSmartPointer<T>::CheckType' : cannot convert parameter 1 from 'vtkScalarBarActor *' to 'vtkScalarBarWidget *'</div>
<div>1> with</div><div>1> [</div><div>1> T=vtkScalarBarWidget</div><div>1> ]</div><div>1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast</div>
<div>1> .\vtk\vtkPBFEAView.cpp(313) : see reference to function template instantiation 'vtkSmartPointer<T>::vtkSmartPointer<vtkScalarBarActor>(const vtkSmartPointer<vtkScalarBarActor> &)' being compiled</div>
<div>1> with</div><div>1> [</div><div>1> T=vtkScalarBarWidget</div><div>1> ]</div><div>1>C:\VTK_New\include\vtk-5.8\vtkSmartPointer.h(60) : error C2664: 'vtkSmartPointer<T>::CheckType' : cannot convert parameter 1 from 'vtkScalarBarWidget *' to 'vtkScalarBarActor *'</div>
<div>1> with</div><div>1> [</div><div>1> T=vtkScalarBarActor</div><div>1> ]</div><div>1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast</div>
<div>1> .\vtk\vtkPBFEAView.cpp(1952) : see reference to function template instantiation 'vtkSmartPointer<T> &vtkSmartPointer<T>::operator =<vtkScalarBarWidget>(const vtkSmartPointer<vtkScalarBarWidget> &)' being compiled</div>
<div>1> with</div><div>1> [</div><div>1> T=vtkScalarBarActor</div><div>1> ]</div></div><div><br></div><div>Can anyone tell me the reason for these errors and how to fix them.</div>
<div>Thanks a lot.</div><div><br></div><div><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>
</div>