[Insight-users] compile itkLabelStatisticsImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Fri Feb 12 09:10:56 EST 2010
Hi Suyang,
You are simply missing to link with the library
ITKStatistics
Please search for the
TARGET_LINK_LIBRARIES
command in your CMakeLists.txt file and add
ITKStatistics to the list of libraries.
Regards,
Luis
--------------------------------------------------------------------
On Thu, Feb 11, 2010 at 6:59 PM, Suyang Mei <suyang_mei at yahoo.com> wrote:
> Hi, all -
>
> I am using ITK 3.16 in vista with vs 2008, and I tried to compile the
> example codes
> itkLabelStatisticsImageFilterTest.cxx under
> InsightToolkit-3.16.0\Testing\Code\BasicFilters, got the following errors -
>
> Any idea what is going on here?
>
> Thanks in advance for any help.
>
> Suyang
>
> Error 2 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<double,1,class
> itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned long
> const &,float)" (?IncreaseFrequency@?$Histogram at N
> $00VDenseFrequencyContainer at Statistics@itk@@@Statistics at itk@@QAE_NABKM at Z)
> zzLabelStatisticsImageFilterTest.obj
>
> Error 3 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)
> zzLabelStatisticsImageFilterTest.obj
>
> Error 4 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<double,1,class
> itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long const
> &)const " (?GetFrequency@?$Histogram at N
> $00VDenseFrequencyContainer at Statistics@itk@@@Statistics at itk@@UBEMABK at Z)
> zzLabelStatisticsImageFilterTest.obj
>
>
> Error 5 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<double,1,class
> itk::Statistics::DenseFrequencyContainer>::Initialize(class itk::Size<1>
> const &)" (?Initialize@?$Histogram at N$00VDenseFrequencyContainer at Statistics
> @itk@@@Statistics at itk@@QAEXABV?$Size@$00 at 3@@Z)
> zzLabelStatisticsImageFilterTest.obj
>
> Error 6 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<double,1,class
> itk::Statistics::DenseFrequencyContainer>::SetToZero(void)" (?SetToZero@
> ?$Histogram at N$00VDenseFrequencyContainer at Statistics@itk@@@Statistics at itk@@QAEXXZ)
> zzLabelStatisticsImageFilterTest.obj
>
>
>
>
>
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100212/1dc06cce/attachment.htm>
More information about the Insight-users
mailing list