Please provide a self-contained, compilable example that illustrates the problem.<br><br>Thanks,<br><br>Bill<br><br><div class="gmail_quote">On Tue, Jul 10, 2012 at 12:43 PM, ariel <span dir="ltr">&lt;<a href="mailto:curiale@gmail.com" target="_blank">curiale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;ve had some troubles after xcode update (from 4.1 to 4.3.3).<br>
<br>
When I compiled ITK-3.20.1 I had too many warnings like this:<br>
InsightToolkit-3.20.1/Utilities/vxl/core/vnl/vnl_math.h:86:36: warning:<br>
in-class initializer for static data member of type &#39;const double&#39; is a GNU<br>
extension [-Wgnu] static VNL_DLL_DATA const double e<br>
VCL_STATIC_CONST_INIT_FLOAT_DECL(2.7182818284590452354);<br>
<br>
<br>
<br>
Second, I made a simple program  and I can&#39;t explain why this code exit with<br>
segmentation fault:<br>
<br>
typedef itk::CastImageFilter &lt; MovingImageType, InternalImageType &gt;<br>
MovingCasterType;<br>
        MovingCasterType::Pointer movingImageCaster =<br>
MovingCasterType::New();<br>
        movingImageCaster-&gt;SetInput( movingImageReader-&gt;GetOutput() );<br>
<br>
<br>
        std::cout&lt;&lt;&quot;0&quot;&lt;&lt;std::endl;<br>
        try<br>
        {<br>
        movingImageCaster-&gt;Update();<br>
         }<br>
          catch( itk::ExceptionObject &amp; err )<br>
                {<br>
                std::cout &lt;&lt; &quot;ExceptionObject caught !&quot; &lt;&lt; std::endl;<br>
                std::cout &lt;&lt; err &lt;&lt; std::endl;<br>
                return -1;<br>
                }<br>
<br>
<br>
<br>
The input of the caster filter is:<br>
<br>
Image (0x7fc201cda600)<br>
  RTTI typeinfo:   itk::Image&lt;double, 2u&gt;<br>
  Reference Count: 3<br>
  Modified Time: 307<br>
  Debug: Off<br>
  Observers:<br>
    none<br>
  Source: (0x7fc201cde1f0)<br>
  Source output index: 0<br>
  Release Data: Off<br>
  Data Released: False<br>
  Global Release Data: Off<br>
  PipelineMTime: 179<br>
  UpdateMTime: 308<br>
  LargestPossibleRegion:<br>
    Dimension: 2<br>
    Index: [0, 0]<br>
    Size: [800, 600]<br>
  BufferedRegion:<br>
    Dimension: 2<br>
    Index: [0, 0]<br>
    Size: [800, 600]<br>
  RequestedRegion:<br>
    Dimension: 2<br>
    Index: [0, 0]<br>
    Size: [800, 600]<br>
  Spacing: [1, 1]<br>
  Origin: [0, 0]<br>
  Direction:<br>
1 0<br>
0 1<br>
<br>
  IndexToPointMatrix:<br>
  1 0<br>
0 1<br>
<br>
  PointToIndexMatrix:<br>
  1 0<br>
0 1<br>
<br>
  PixelContainer:<br>
    ImportImageContainer (0x7fc201cde360)<br>
      RTTI typeinfo:   itk::ImportImageContainer&lt;unsigned long, double&gt;<br>
      Reference Count: 1<br>
      Modified Time: 306<br>
      Debug: Off<br>
      Observers:<br>
        none<br>
      Pointer: 0x108d15000<br>
      Container manages memory: true<br>
      Size: 480000<br>
      Capacity: 480000<br>
<br>
<br>
Thanks,<br>
Ariel.<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/CastImageFilter-Error-tp7580458.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/CastImageFilter-Error-tp7580458.html</a><br>

Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>