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