[Insight-users] Linking Error
Cagatay Bilgin
bilgincc at gmail.com
Wed Jun 13 12:10:41 EDT 2012
Hi Vikash,
Any chance you forgot to link ITKCommon with your program?
do you have the following line in your cmakelist
TARGET_LINK_LIBRARIES(HelloWorld ITKCommon)
Cagatay
On Wed, Jun 13, 2012 at 7:54 AM, Vikash Gupta <vikash.gupta at inria.fr> wrote:
> Hello All,
> I am trying to compile my code and recieving a linking error as mentioned
> below...
>
>
> undefined reference to symbol 'typeinfo for itk::LightObject'
> /usr/bin/ld: note: 'typeinfo for itk::LightObject' is defined in DSO
> /home/vigupta/Software/ITK/build/bin/libITKCommon.so.3.20 so try adding it
> to the linker command line
> /home/vigupta/Software/ITK/build/bin/libITKCommon.so.3.20: could not read
> symbols: Invalid operation
> collect2: ld returned 1 exit status
>
>
> Has anyone encountered similar errors??
> Thanks
> Vikash
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120613/b5c48b3a/attachment.htm>
More information about the Insight-users
mailing list