On Wed, Dec 5, 2012 at 2:15 PM, Ted Broom <span dir="ltr">&lt;<a href="mailto:tedbroom123@gmail.com" target="_blank">tedbroom123@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi;</div><div><br></div><div>Im just staring out with Image registration and trying to build the examples out of the source directory so I can modify them.  I however come up with this error.</div><div><br></div><div>

itkImageRegistrationMethod.hxx:223: error: ‘void itk::ImageRegistrationMethod&lt;TFixedImage, TMovingImage&gt;::StartRegistration() [with TFixedImage = itk::Image&lt;float, 2u&gt;, TMovingImage = itk::Image&lt;float, 2u&gt;]’ is protected</div>

<div><br></div><div>I include ITKIO and ITKnumerics as target link libraries and have searched the forums but can&#39;t seem to find problems similar to mine.</div><div><br></div><div>Advice is appreciated.</div><div><br>

</div><div>Many thnaks</div></blockquote><div><br></div><br clear="all">That sounds like an API change. Which version of ITK are you using? Are you building the examples from that version against the same version of ITK.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">In ITK4+, you should just use</div><div class="gmail_quote"><br></div><div class="gmail_quote">target_link_libraries(yourTarget ${ITK_LIBRARIES})</div><div class="gmail_quote">
<br></div><div class="gmail_quote">rather than listing the libraries individually.</div><div class="gmail_quote"><br>David</div>