[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/insight-developers/attachments/20160823/42f1e91f/attachment.html>
More information about the Insight-developers
mailing list