[Insight-users] Error using non-standard data type
reny at ctm.ulpgc.es
reny at ctm.ulpgc.es
Wed Jun 9 03:56:28 EDT 2004
Hi everybody:
I've been developing a class to manage tensors. I've tried to create a
filter to implement a FFT on tensor fields. The input and output to the
filter are images which pixel type is my complex_tensor class. When I
try to compile a very simple example this error message arises:
TFFT_test.o: In function `itk::itkTFFT<float, 2>::New(void)':
TFFT_test.o(.itk::itkTFFT<float, 2>::gnu.linkonce.t.New(void)+0x6c):
undefined reference to `itk::itkTFFT<float, 2>::itkTFFT(void)'
TFFT_test.o: In function
`itk::ObjectFactory<itk::Image<complex_tensor<float>, 2>
>::Create(void)':
TFFT_test.o(.itk::ObjectFactory<itk::Image<complex_tensor<float>, 2>
>::gnu.linkonce.t.Create(void)+0x2b): undefined reference to
`itk::ObjectFactoryBase::CreateInstance(char const *)'
TFFT_test.o(.itk::ObjectFactory<itk::Image<complex_tensor<float>, 2>
>::gnu.linkonce.t.Create(void)+0x5c): undefined reference to
`itk::LightObject type_info function'
TFFT_test.o: In function `itk::ObjectFactory<itk::itkTFFT<float, 2>
>::Create(void)':
TFFT_test.o(.itk::ObjectFactory<itk::itkTFFT<float, 2>
>::gnu.linkonce.t.Create(void)+0x2b): undefined reference to
`itk::ObjectFactoryBase::CreateInstance(char const *)'
TFFT_test.o(.itk::ObjectFactory<itk::itkTFFT<float, 2>
>::gnu.linkonce.t.Create(void)+0x5c): undefined reference to
`itk::LightObject type_info function'
TFFT_test.o: In function `itk::ImageBase<2>::ImageBase(void)':
TFFT_test.o(.itk::ImageBase<2>::gnu.linkonce.t.(void)+0xd): undefined
reference to `itk::DataObject::DataObject(void)'
TFFT_test.o(.itk::ImageBase<2>::gnu.linkonce.t.(void)+0x19e): undefined
reference to `itk::DataObject::~DataObject(void)'
(And many other similar errors )
It looks like a linking problem, but I don't know why. I have made
similar filters using standard data types and I had no problem. ITK
provides templates to use any data type but, these data types have to be
standard? Have I to write any code to make itk work with a new data
type?
Thanks in advance.
Reny.
More information about the Insight-users
mailing list