<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body class="" style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><span style="font-size: 13.3333px;">I am using xcode 7.3.1, ITK v4.10, and SimpleITK v0.10.0.</span>
<div style="font-size: 13.3333px;"><br>
</div>
<div style="font-size: 13.3333px;">I should clarify that SimpleITK itself compiles and links allright, but the error happens when linking against my own extensions to SimpleITK (https://github.com/kaspermarstal/SimpleElastix). The way itkStaticConstMacro and
the ImageDimension is used here here <a href="https://github.com/kaspermarstal/elastix/blob/641c83af7f97dfe2397e26e832cdda76e166fd14/src/Core/Main/elxElastixFilter.h#L80-L81" target="_blank" style="font-size: 10pt;">https://github.com/kaspermarstal/elastix/blob/641c83af7f97dfe2397e26e832cdda76e166fd14/src/Core/Main/elxElastixFilter.h#L80-L81</a> <span style="font-size: 10pt;">seems
to hide the ImageDimension symbol during linking, much in the same way as in the referenced gerrit discussion.</span></div>
<div style="font-size: 13.3333px;"><span style="font-size: 10pt;"><br>
</span></div>
<div style="font-size: 13.3333px;"><span style="font-size: 10pt;">There are workarounds of course, just thought you should know.</span></div>
<div style="font-size: 13.3333px;"><span style="font-size: 10pt;"><br>
</span></div>
<div style="font-size: 13.3333px;"><span style="font-size: 10pt;">Kasper</span></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF352460" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Lowekamp, Bradley (NIH/NLM/LHC) [C] [blowekamp@mail.nih.gov]<br>
<b>Sent:</b> Tuesday, August 23, 2016 9:10 PM<br>
<b>To:</b> K.K. Marstal<br>
<b>Cc:</b> insight-developers@itk.org<br>
<b>Subject:</b> Re: [ITK] [ITK-dev] BUG: Undefined symbol ImageBase::ImageDimension with clang compiler<br>
</font><br>
</div>
<div></div>
<div>Hello,
<div class=""><br class="">
</div>
<div class="">Do you have a specific version of SimpleITK and ITK and Xcode which cause this problem?</div>
<div class=""><br class="">
</div>
<div class="">The current SimpleITK master with Xcode 7.3 seems ok to me.</div>
<div class=""><br class="">
</div>
<div class="">Brad</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 23, 2016, at 12:04 PM, K.K. Marstal <<a href="mailto:k.marstal@erasmusmc.nl" class="" target="_blank">k.marstal@erasmusmc.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; direction:ltr; font-family:Tahoma; font-size:10pt">
Hello,
<div class=""><br class="">
</div>
<div class="">As discussed in this gerrit ticket <a href="http://review.source.kitware.com/#/c/20900/," class="" style="font-size:10pt" target="_blank">http://review.source.kitware.com/#/c/20900</a> 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. </div>
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">Kind Regards,</div>
<div class="">Kasper Marstal</div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Powered
by<span class="Apple-converted-space"> </span></span><a href="http://www.kitware.com/" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">www.kitware.com</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Visit
other Kitware open-source projects at</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://www.kitware.com/opensource/opensource.html" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Kitware
offers ITK Training Courses, for more information visit:</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://kitware.com/products/protraining.php" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">http://kitware.com/products/protraining.php</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Please
keep messages on-topic and check the ITK FAQ at:</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://www.itk.org/Wiki/ITK_FAQ" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Follow
this link to subscribe/unsubscribe:</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://public.kitware.com/mailman/listinfo/insight-developers" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">http://public.kitware.com/mailman/listinfo/insight-developers</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">Community
mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="mailto:Community@itk.org" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">Community@itk.org</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://public.kitware.com/mailman/listinfo/community" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px" target="_blank">http://public.kitware.com/mailman/listinfo/community</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>