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

K.K. Marstal k.marstal at erasmusmc.nl
Tue Aug 23 12:04:43 EDT 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160823/42f1e91f/attachment.html>
-------------- next part --------------
_______________________________________________
Powered by 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


More information about the Community mailing list