[Insight-users] errors in deformable registration.

Luis Ibanez luis.ibanez at kitware.com
Wed Dec 9 10:10:43 EST 2009


Hi Subarna,

You are missing to link with the ITKStatistics library.

Please,

1) Edit the CMakeLists.txt file of your project, and

2) Search for the command

             TARGET_LINK_LIBRARIES(...

     and

3)  Add to it:      ITKStatistics


Then: configure, generate and build.


      Regards,


            Luis


-----------------------------------------------------------
On Wed, Dec 9, 2009 at 12:32 AM, Subarna Ghosh <subarna29 at gmail.com> wrote:
> Hi all,
>
> I get these linking errors when I try to compile DeformableRegistration2
>
> DeformableRegistration.obj : error LNK2019: unresolved external symbol
> "protected: __thiscall
> itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer(void)"
> (??0DenseFrequencyContainer at Statistics@itk@@IAE at XZ) referenced in function
> "public: static class itk::SmartPointer<class
> itk::Statistics::DenseFrequencyContainer> __cdecl
> itk::Statistics::DenseFrequencyContainer::New(void)"
> (?New at DenseFrequencyContainer@Statistics at itk@@SA?AV?$SmartPointer at VDenseFrequencyContainer@Statistics at itk@@@3 at XZ)
> 1>DeformableRegistration.obj : error LNK2019: unresolved external symbol
> "public: float __thiscall
> itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long)const "
> (?GetFrequency at DenseFrequencyContainer@Statistics at itk@@QBEMK at Z) referenced
> in function "public: virtual float __thiscall
> itk::Statistics::Histogram<float,1,class
> itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long const
> &)const "
> (?GetFrequency@?$Histogram at M$00VDenseFrequencyContainer at Statistics@itk@@@Statistics at itk@@UBEMABK at Z)
> 1>DeformableRegistration.obj : error LNK2019: unresolved external symbol
> "public: void __thiscall
> itk::Statistics::DenseFrequencyContainer::SetToZero(void)"
> (?SetToZero at DenseFrequencyContainer@Statistics at itk@@QAEXXZ) referenced in
> function "public: void __thiscall itk::Statistics::Histogram<float,1,class
> itk::Statistics::DenseFrequencyContainer>::SetToZero(void)"
> (?SetToZero@?$Histogram at M$00VDenseFrequencyContainer at Statistics@itk@@@Statistics at itk@@QAEXXZ)
> 1>DeformableRegistration.obj : error LNK2019: unresolved external symbol
> "public: bool __thiscall
> itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned
> long,float)"
> (?IncreaseFrequency at DenseFrequencyContainer@Statistics at itk@@QAE_NKM at Z)
> referenced in function "public: bool __thiscall
> itk::Statistics::Histogram<float,1,class
> itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned long
> const &,float)"
> (?IncreaseFrequency@?$Histogram at M$00VDenseFrequencyContainer at Statistics@itk@@@Statistics at itk@@QAE_NABKM at Z)
> 1>DeformableRegistration.obj : error LNK2019: unresolved external symbol
> "public: void __thiscall
> itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)"
> (?Initialize at DenseFrequencyContainer@Statistics at itk@@QAEXK at Z) referenced in
> function "public: void __thiscall itk::Statistics::Histogram<float,1,class
> itk::Statistics::DenseFrequencyContainer>::Initialize(class itk::Size<1>
> const &)"
> (?Initialize@?$Histogram at M$00VDenseFrequencyContainer at Statistics@itk@@@Statistics at itk@@QAEXABV?$Size@$00 at 3@@Z)
> 1>D:\study\Fall2009\ITK-VTK\Projects\DeformableRegistration\bin\Debug\DeformableRegistration.exe
> : fatal error LNK1120: 5 unresolved externals
>
> Thanks and regards,
> Subarna Ghosh.
>
> _____________________________________
> 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.html
>
> 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
>
>


More information about the Insight-users mailing list