[Insight-developers] ITK on Mac OX 10.2

Bill Hoffman bill . hoffman at kitware . com
Fri, 09 Aug 2002 09:10:03 -0400


We are making some progress with ITK building on the latest Mac OS X version.
Numerics and VNL are now passing all the tests.   ITK is now the road block.
It would seem that they do not support weak data symbols, just functions.  So,
the static data members of templated classes cause duplicate symbols.
Perhaps we could try to remove any static data members of templated classes.

One of these StaticSpacing does not seem to be used except in the base class
of itkImageBase::GetSpacing which always seems to be overridden by child classes.


-Bill




Here are the types of errors:

ld: multiple definitions of symbol 
itk::StaticSpacing<(unsigned)3>::Initialize()::initialized 
itkStatisticsAlgorithmTest.o definition of 
itk::StaticSpacing<(unsigned)3>::Initialize()::initialized in 
section (__DATA,__data) 
itkCovarianceCalculatorTest.o definition of 
itk::StaticSpacing<(unsigned)3>::Initialize()::initialized in 
section (__DATA,__data) 
ld: multiple definitions of symbol 
itk::ImageBase<(unsigned)3>::GetOrigin()::origin const 
itkStatisticsAlgorithmTest.o definition of 
itk::ImageBase<(unsigned)3>::GetOrigin()::origin const in section 
(__TEXT,__const) 
itkCovarianceCalculatorTest.o definition of 
itk::ImageBase<(unsigned)3>::GetOrigin()::origin const in section 
(__TEXT,__const) 
itkMeanCalculatorTest.o definition of 
itk::StaticSpacing<(unsigned)3>::Initialize()::initialized in 
section (__DATA,__data) 
itkMeanCalculatorTest.o definition of 
itk::ImageBase<(unsigned)3>::GetOrigin()::origin const in section 
(__TEXT,__const) 
itkSubsampleTest.o definition of 
itk::StaticSpacing<(unsigned)3>::Initialize()::initialized in 
section (__DATA,__data) 
itkSubsampleTest.o definition of 
itk::ImageBase<(unsigned)3>::GetOrigin()::origin const in section 
(__TEXT,__const) 
itkMembershipSampleTest.o definition of 
itk::StaticSpacing<(unsigned)3>::Initialize()::initialized in 
section (__DATA,__data) 
itkMembershipSampleTest.o definition of 
itk::ImageBase<(unsigned)3>::GetOrigin()::origin const in section 
(__TEXT,__const) 
itkImageToListAdaptorTest.o definition of 
itk::StaticSpacing<(unsigned)3>::Initialize()::initialized in 
section (__DATA,__data) 
itkImageToListAdaptorTest.o definition of 
itk::ImageBase<(unsigned)3>::GetOrigin()::origin const in section 
(__TEXT,__const)