[ITK-dev] [ITK] BUG: Undefined symbol ImageBase::ImageDimension with clang compiler

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Tue Aug 23 15:10:09 EDT 2016


Hello,

Do you have a specific version of SimpleITK and ITK and Xcode which cause this problem?

The current SimpleITK master with Xcode 7.3 seems ok to me.

Brad

On Aug 23, 2016, at 12:04 PM, K.K. Marstal <k.marstal at erasmusmc.nl<mailto:k.marstal at erasmusmc.nl>> wrote:

Hello,

As discussed in this gerrit ticket http://review.source.kitware.com/#/c/20900<http://review.source.kitware.com/#/c/20900/,> the recent change to itkGetStaticConstMacro hides the ImageBase::ImageDimension symbol for linking in some cases. While the problem seemed to have been solved in that particular case, I am getting the same error compiling SimpleITK and linking against the Python wrapper on Mac OS X with GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5) compiler.

The issue is fixed if I change line 780 of itkMacro.h "itkStaticConstMacro(name,type,value) static ITK_CONSTEXPR type name = value" back the version of itk 4.8.2, namely "#define itkStaticConstMacro(name, type, value) enum { name = value }". To clarify, the problem seem to be with ITK, not with SimpleITK.

Kind Regards,
Kasper Marstal
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com/>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers
_______________________________________________
Community mailing list
Community at itk.org<mailto:Community at itk.org>
http://public.kitware.com/mailman/listinfo/community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20160823/53532e12/attachment.html>


More information about the Insight-developers mailing list