[Insight-users] Error compilation histogram
Vincent ROULLIER
vincent.roullier at wanadoo.fr
Wed Dec 7 02:24:43 EST 2005
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
More information about the Insight-users
mailing list