[Insight-users] Error compilation histogram
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Wed Dec 7 03:39:59 EST 2005
Hi,
You should try to link your program with ITKStatistics
Regards,
Gaetan
On Wed, 07 Dec 2005 08:24:43 +0100, Vincent ROULLIER
<vincent.roullier at wanadoo.fr> wrote:
> Hi,
>
> I compiled the new release of itk. I have a compilation error.
> I use the itkScalarImageToHistogramGenerator class:
>
>
> algo.o(.gnu.linkonce.t._ZN3itk10Statistics23DenseFrequencyContainer3NewEv+0x59):
> In function `itk::Statistics::DenseFrequencyContainer::New()':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer[in-charge]()'
> algo.o(.gnu.linkonce.t._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv+0xd):
> In function
> `itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()':
> : undefined reference to `typeinfo for
> itk::Statistics::DenseFrequencyContainer'
> algo.o(.gnu.linkonce.t._ZN3itk13ObjectFactoryINS_10Statistics23DenseFrequencyContainerEE6CreateEv+0x4e):
> In function
> `itk::ObjectFactory<itk::Statistics::DenseFrequencyContainer>::Create()':
> : undefined reference to `typeinfo for
> itk::Statistics::DenseFrequencyContainer'
> algo.o(.gnu.linkonce.t._ZNK3itk10Statistics9HistogramItLj1ENS0_23DenseFrequencyContainerEE12GetFrequencyERKm+0x23):
> In function `itk::Statistics::Histogram<unsigned short, (unsigned)1,
> itk::Statistics::DenseFrequencyContainer>::GetFrequency(unsigned long
> const&) const':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned long)
> const'
> algo.o(.gnu.linkonce.t._ZN3itk10Statistics9HistogramItLj1ENS0_23DenseFrequencyContainerEE10InitializeERKNS_4SizeILj1EEE+0x15e):
> In function `itk::Statistics::Histogram<unsigned short, (unsigned)1,
> itk::Statistics::DenseFrequencyContainer>::Initialize(itk::Size<(unsigned)1>
> const&)':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)'
> algo.o(.gnu.linkonce.t._ZN3itk10Statistics9HistogramItLj1ENS0_23DenseFrequencyContainerEE17IncreaseFrequencyERKmf+0x2a):
> In function `itk::Statistics::Histogram<unsigned short, (unsigned)1,
> itk::Statistics::DenseFrequencyContainer>::IncreaseFrequency(unsigned
> long const&, float)':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned
> long, float)'
> algo.o(.gnu.linkonce.t._ZN3itk10Statistics9HistogramItLj1ENS0_23DenseFrequencyContainerEE9SetToZeroEv+0x18):
> In function `itk::Statistics::Histogram<unsigned short, (unsigned)1,
> itk::Statistics::DenseFrequencyContainer>::SetToZero()':
> : undefined reference to
> `itk::Statistics::DenseFrequencyContainer::SetToZero()'
> collect2: ld returned 1 exit status
> make[1]: *** [/home/piccolo/Prog/VTK/ImageITKVTK/myProject] Error 1
> make: *** [default_target] Error 2
>
> Any idea ?
>
> The program compiled with itk version 2.0.1. I supposed that there is a
> problem with the itkScalarImageToHistogramGenerator
> The difference between the itkScalarImageToHistogramGenerator in version
> 2.0.1 and 2.4.1 is in the .h file:
>
> in 2.0.1 :
> typedef itk::Statistics::ListSampleToHistogramGenerator<
> AdaptorType,
> PixelType
> >
> GeneratorType;
>
>
> in 2.4.1
> typedef itk::Statistics::ListSampleToHistogramGenerator<
> AdaptorType,
> PixelType,
> DenseFrequencyContainer
> >
> GeneratorType;
>
>
> Thx
>
> Vincent
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-users
mailing list