<div>Hi Vikash, </div><div>Any chance you forgot to link ITKCommon with your program?</div><div><div><br></div><div>do you have the following line in your cmakelist  </div><div>TARGET_LINK_LIBRARIES(HelloWorld ITKCommon)<br>
</div></div><div><br></div><div>Cagatay </div><div><br></div><div><div class="gmail_quote">On Wed, Jun 13, 2012 at 7:54 AM, Vikash Gupta <span dir="ltr">&lt;<a href="mailto:vikash.gupta@inria.fr" target="_blank">vikash.gupta@inria.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Hello All, </div><div>I am trying to compile my code and recieving a linking error as mentioned below...</div>
<div><br></div><div><br></div><div> undefined reference to symbol &#39;typeinfo for itk::LightObject&#39;</div><div>/usr/bin/ld: note: &#39;typeinfo for itk::LightObject&#39; is defined in DSO /home/vigupta/Software/ITK/build/bin/libITKCommon.so.3.20 so try adding it to the linker command line</div>
<div>/home/vigupta/Software/ITK/build/bin/libITKCommon.so.3.20: could not read symbols: Invalid operation</div><div>collect2: ld returned 1 exit status</div><div><br></div><div><br></div><div>Has anyone encountered similar errors??</div>
<div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Vikash</div><div><br></div></font></span></div></div><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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>