It builds with clang, after some changes.<div>Just to be sure there is no error on my end, here are the versions of clang and ITK I am using.</div><div><br></div><div>ITK release-branch (last commit 389c62087f77cf116cf53039f4d667a544c824bc Merge branch 'comp-clang-3.0' into release).</div>
<div>Clang is build from here <a href="http://llvm.org/pre-releases/3.0/rc2/" target="_blank" style="color: rgb(17, 37, 8); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">http://llvm.org/pre-releases/3.0/rc2/</a> clang --version shows version is 3.0 rc2.<br>
<br>I had to change the following files:<br><div>Code/Algorithms/itkCurvesLevelSetFunction.h</div><div>Code/Algorithms/itkGeodesicActiveContourLevelSetFunction.h</div><div>Code/Algorithms/itkGeodesicActiveContourShapePriorLevelSetFunction.h</div>
<div>Code/Algorithms/itkShapeDetectionLevelSetFunction.h</div><div>Code/Algorithms/itkVoronoiPartitioningImageFilter.txx</div><div>Code/BasicFilters/itkBloxBoundaryPointImageToBloxBoundaryProfileImageFilter.txx</div><div>
Code/BasicFilters/itkBloxBoundaryProfileImageToBloxCoreAtomImageFilter.txx</div><div>Code/BasicFilters/itkTernaryFunctorImageFilter.txx</div><div>Code/Common/itkPoint.txx</div><div>Code/Common/itkSize.h</div><div>Code/Numerics/Statistics/itkWeightedCentroidKdTreeGenerator.txx</div>
<div>Testing/Code/Common/itkMeshSourceGraftOutputTest.cxx</div></div><div><br></div><div>The errors were mostly missing this-Pointer or a missing include. Maybe the default settings of clang are too strict.</div><div><br>
</div><div>Of course I can provide a patch (if this not some stupid error on my system :-) ). Maybe I should move this to the developer mailing list.</div><div><br><div class="gmail_quote">2011/11/8 Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, 7 Nov 2011 15:33:51 +0100, Stefan Köhnen said:<br>
<br>
>thanks for your reply, I still had to change some lines of code, mostly<br>
>missing this-Pointer in the test-cases.<br>
<br>
</div>Are you saying ITK 3.20.1 does not build with clang? I believe it should. If not, can you provide a patch?<br>
<div class="im"><br>
>The build process worked, but the tests fail. I will try to use the<br>
>compiled library in an test-application.<br>
<br>
</div>The failing tests are probably this bug:<br>
<<a href="http://llvm.org/bugs/show_bug.cgi?id=9395" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=9395</a>><br>
<br>
Someone needs to create a reduced test case, but I have not had the time... If you do, that'd be great. :)<br>
<div><div></div><div class="h5"><br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer Montréal, Québec, Canada<br>
<br>
<br>
</div></div></blockquote></div><br></div>