<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7655.8">
<TITLE>problem with ImageHistogram2.cxx.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi<BR>
I have a problem: when I run the example Examples/Statistics/ImageHistogram2.cxx it return me this output:<BR>
<BR>
~$ make<BR>
Scanning dependencies of target Histogram<BR>
[100%] Building CXX object CMakeFiles/Histogram.dir/Histogram.cxx.o<BR>
Linking CXX executable Histogram<BR>
CMakeFiles/Histogram.dir/Histogram.cxx.o: In function `itk::Statistics::DenseFrequencyContainer::New()':<BR>
Histogram.cxx:(.text._ZN3itk10Statistics23DenseFrequencyContainer3NewEv[itk::Statistics::DenseFrequencyContainer::New()]+0x40): undefined reference to `itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer()'<BR>
CMakeFiles/Histogram.dir/Histogram.cxx.o: In function `itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()':<BR>
Histogram.cxx:(.text._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv[itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()]+0xc): undefined reference to `typeinfo for itk::Statistics::DenseFrequencyContainer'<BR>
Histogram.cxx:(.text._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv[itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()]+0x4e): undefined reference to `typeinfo for itk::Statistics::DenseFrequencyContainer'<BR>
CMakeFiles/Histogram.dir/Histogram.cxx.o: In function `itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long const&) const':<BR>
Histogram.cxx:(.text._ZNK3itk10Statistics9HistogramIdLj1ENS0_23DenseFrequencyContainerEE12GetFrequencyERKm[itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long const&) const]+0x22): undefined reference to `itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long) const'<BR>
CMakeFiles/Histogram.dir/Histogram.cxx.o: In function `itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::Initialize(itk::Size<1u> const&)':<BR>
Histogram.cxx:(.text._ZN3itk10Statistics9HistogramIdLj1ENS0_23DenseFrequencyContainerEE10InitializeERKNS_4SizeILj1EEE[itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::Initialize(itk::Size<1u> const&)]+0x1db): undefined reference to `itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)'<BR>
CMakeFiles/Histogram.dir/Histogram.cxx.o: In function `itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned long const&, float)':<BR>
Histogram.cxx:(.text._ZN3itk10Statistics9HistogramIdLj1ENS0_23DenseFrequencyContainerEE17IncreaseFrequencyERKmf[itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned long const&, float)]+0x29): undefined reference to `itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned long, float)'<BR>
CMakeFiles/Histogram.dir/Histogram.cxx.o: In function `itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::SetToZero()':<BR>
Histogram.cxx:(.text._ZN3itk10Statistics9HistogramIdLj1ENS0_23DenseFrequencyContainerEE9SetToZeroEv[itk::Statistics::Histogram<double, 1u, itk::Statistics::DenseFrequencyContainer>::SetToZero()]+0x18): undefined reference to `itk::Statistics::DenseFrequencyContainer::SetToZero()'<BR>
collect2: ld returned 1 exit status<BR>
make[2]: *** [Histogram] Errore 1<BR>
make[1]: *** [CMakeFiles/Histogram.dir/all] Errore 2<BR>
make: *** [all] Errore 2<BR>
<BR>
I have not changed anything about the code. But I don't know what is the problem.<BR>
<BR>
Thank you<BR>
Best regards<BR>
Edoardo</FONT>
</P>
</BODY>
</HTML>