<br><div class="gmail_quote">On Wed, May 13, 2009 at 11:32 AM, 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Hello everyone,<br>I wrote this simple code but it is not getting compiled.<br>i am getting the following error message. pls help.<br><br><span style="border-bottom: 1px dashed rgb(0, 102, 204); background: transparent none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">Error message</span>:- undefined reference to &#39;vtkDataArrayTemplate&lt;short&gt;::Set numbervalues (long long)&#39;<br>
<br>Can someone compile this code in computer 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%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">Error message</span>:- undefined reference to &#39;vtkDataArrayTemplate&lt;short&gt;::Set numbervalues (long long)&#39;<br>
</td></tr></tbody></table></blockquote><div> </div><div>It compiles fine for me. Make sure you link to vtkHybrid.<br>
<br clear="all">Thanks,<br><br>David <br></div></div>