Hi Jothy, I have using vtk 5.8 and I thought it will be easier to add it as I have all the lib and bin files.<div>@David&gt; I wii try to do a small compilable code, bu since the project is too large I can&#39;t find the exact place where the error comes from.</div>
<div>What I want to know is do we need to make code changes like these at every time we upgrade our vtk version?</div><div>Thanks.<br><div><br><br><div class="gmail_quote">On Fri, Jun 22, 2012 at 4:48 PM, Jothybasu Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">vtk 5.10 is the latest one, why you need 5.8?<br><br>Jothy<br><br><div class="gmail_quote"><div><div class="h5">
On Fri, Jun 22, 2012 at 11:33 AM, Gishara Indeewarie <span dir="ltr">&lt;<a href="mailto:gish.777@gmail.com" target="_blank">gish.777@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">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><span><font color="#888888"><div><br></div><div><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>
</div>
</font></span><br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Jothybasu Selvaraj<br>PhD Student<br>University of Liverpool<br>UK<br></div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>
</div></div>