Vikash Gupta | 13 Jun 2012 16:54
Picon
Picon
Favicon

Linking Error

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
Bill Lorensen | 13 Jun 2012 18:08
Picon
Gravatar

Re: Linking Error

Looks like your vtk libraries might be corrupt. Did you change c++
compilers recently? Try removing all of the vtk .so's and rebuild vtk.

On Wed, Jun 13, 2012 at 10:54 AM, Vikash Gupta <vikash.gupta@...> 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
>

--

-- 
Unpaid intern in BillsBasement at noware dot com
_____________________________________
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

Bill Lorensen | 13 Jun 2012 18:40
Picon
Gravatar

Re: Linking Error

ooops, I meant ITK libraries and rebuild ITK.

On Wed, Jun 13, 2012 at 12:08 PM, Bill Lorensen
<bill.lorensen@...> wrote:
> Looks like your vtk libraries might be corrupt. Did you change c++
> compilers recently? Try removing all of the vtk .so's and rebuild vtk.
>
> On Wed, Jun 13, 2012 at 10:54 AM, Vikash Gupta <vikash.gupta@...> 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
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com

--

-- 
Unpaid intern in BillsBasement at noware dot com
_____________________________________
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

Vikash Gupta | 14 Jun 2012 17:30
Picon
Picon
Favicon

Re: Linking Error

Hi Bill, 
Thanks for the help.. Well rebuilding ITK helped.. I dont see why they should be corrupt or anything just
because they are old ... :)

Vikash

----- Original Message -----
> From: "Bill Lorensen" <bill.lorensen@...>
> To: "Vikash Gupta" <vikash.gupta@...>
> Cc: "itk" <insight-users@...>
> Sent: Wednesday, June 13, 2012 6:08:27 PM
> Subject: Re: [Insight-users] Linking Error
> 
> Looks like your vtk libraries might be corrupt. Did you change c++
> compilers recently? Try removing all of the vtk .so's and rebuild
> vtk.
> 
> On Wed, Jun 13, 2012 at 10:54 AM, Vikash Gupta
> <vikash.gupta@...> 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
> >
> 
> 
> 
> --
> Unpaid intern in BillsBasement at noware dot com
> 
_____________________________________
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

Cagatay Bilgin | 13 Jun 2012 18:10
Picon

Re: Linking Error

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-MZpvjPyXg2s@public.gmane.org> 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


_____________________________________
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

Gmane