[ITK Community] Linker errors on Mac 10.7 with ITK 4.5.1

Fetzer, Andreas a.fetzer at Dkfz-Heidelberg.de
Fri Feb 28 06:36:56 EST 2014


Hi list,

we recently upgrade ITK in our project to version 4.5.1. Now I get linker errors (attached below)

My system is Mac OS X 10.7.5 with Apple clang version 3.1 (tags/Apple/clang-318.0.54) (based on LLVM 3.1svn).
We build ITK as shared libraries.

To eliminate the possibility that we made some configuration misstake I checked out ITK separately and build it from
scratch. This lead to the same errors.

It this a know issue and is there already a solution?

Many thanks
Andreas

Error ouput:

Linking CXX executable ../../../../bin/ITKCommon1TestDriver
Undefined symbols for architecture x86_64:
  "itk::SmartPointerForwardReference<itk::ProcessObject>::operator itk::ProcessObject*() const", referenced from:
      itk::ImageBase<2u>::UpdateOutputInformation() in ITKCommon1TestDriver.cxx.o
      itk::ImageBase<6u>::UpdateOutputInformation() in ITKCommon1TestDriver.cxx.o
      itk::ImageFileWriter<itk::Image<unsigned char, 2u> >::Write() in ITKCommon1TestDriver.cxx.o
      itk::ImageBase<2u>::UpdateOutputInformation() in itkAbortProcessObjectTest.cxx.o
      itk::ImageBase<3u>::UpdateOutputInformation() in itkAdaptorComparisonTest.cxx.o
      itk::ImageBase<2u>::UpdateOutputInformation() in itkExtractImage3Dto2DTest.cxx.o
      itk::ImageBase<3u>::UpdateOutputInformation() in itkExtractImage3Dto2DTest.cxx.o
      ...
  "itk::SmartPointerForwardReference<itk::ProcessObject>::~SmartPointerForwardReference()", referenced from:
      itk::ImageBase<2u>::UpdateOutputInformation() in ITKCommon1TestDriver.cxx.o
      itk::ImageBase<6u>::UpdateOutputInformation() in ITKCommon1TestDriver.cxx.o
      itk::ImageFileWriter<itk::Image<unsigned char, 2u> >::Write() in ITKCommon1TestDriver.cxx.o
      itk::ImageBase<2u>::UpdateOutputInformation() in itkAbortProcessObjectTest.cxx.o
      itk::ImageBase<3u>::UpdateOutputInformation() in itkAdaptorComparisonTest.cxx.o
      itk::ImageBase<2u>::UpdateOutputInformation() in itkExtractImage3Dto2DTest.cxx.o
      itk::ImageBase<3u>::UpdateOutputInformation() in itkExtractImage3Dto2DTest.cxx.o
      ...
  "itk::SmartPointerForwardReference<itk::ProcessObject>::operator->() const", referenced from:
      itk::ImageBase<2u>::UpdateOutputInformation() in ITKCommon1TestDriver.cxx.o
      itk::ImageBase<6u>::UpdateOutputInformation() in ITKCommon1TestDriver.cxx.o
      itk::ImageBase<2u>::UpdateOutputInformation() in itkAbortProcessObjectTest.cxx.o
      itk::ImageBase<3u>::UpdateOutputInformation() in itkAdaptorComparisonTest.cxx.o
      itk::ImageBase<2u>::UpdateOutputInformation() in itkExtractImage3Dto2DTest.cxx.o
      itk::ImageBase<3u>::UpdateOutputInformation() in itkExtractImage3Dto2DTest.cxx.o
      itk::ImageBase<1u>::UpdateOutputInformation() in itkExtractImageTest.cxx.o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140228/e1a901d4/attachment-0002.html>


More information about the Community mailing list