Please provide us with your CMakeLists.txt file for compiling this code.<br><br><div>What OS are you using?</div><div>What compiler?<br><div>What version of CMake?</div><div>Did you build VTK 5.2.1 yourself or did someone else build it for you?</div>
<div><br></div><div><br><div class="gmail_quote">On Thu, May 14, 2009 at 3:18 PM, frency v <span dir="ltr">&lt;<a href="mailto:frencyvarghese@yahoo.com">frencyvarghese@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hello everyone,<br>I wrote this simple code but it is not getting compiled.<br>i am getting the following <span style="border-bottom:1px dashed rgb(0, 102, 204)">error message</span>. pls help.<br>
<br><span style="border-bottom:1px dashed rgb(0, 102, 204);background:transparent none repeat scroll 0% 0%">Error message</span>:- undefined reference to &#39;vtkDataArrayTemplate&lt;short&gt;::Set numbervalues (long long)&#39;<br>
<br>Can someone compile this code  and let me know what is going wrong?<br><br>Rgds<br>Frency<br><br>here is the code<br><br>#include &quot;vtkShortArray.h&quot;<br>
int main()<br>
{ short arrIn[10];<br>
    const int indmax=10;<br>
    vtkShortArray *dataArr = vtkShortArray::New();<br>
   dataArr-&gt;SetNumberOfValues(indmax);<br>
}<br><br><span style="border-bottom:1px dashed rgb(0, 102, 204);background:transparent none repeat scroll 0% 0%">Error message</span>:- undefined reference to &#39;vtkDataArrayTemplate&lt;short&gt;::Set numbervalues (long long)&#39;<br>
<br>

      </td></tr></tbody></table><br>

      <br>_______________________________________________<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><br></div></div>