Hi Claire,<br><br>If you compile the latest ITKv4, you will not see this problem.  It is built regularly wil gcc 4.6.  The CTK superbuild must be using an old version.<br><br>Thanks,<br>Matt<br><br>On Tuesday, October 18, 2011, Claire Mouton &lt;<a href="mailto:Claire.Mouton@creatis.insa-lyon.fr">Claire.Mouton@creatis.insa-lyon.fr</a>&gt; wrote:<br>
&gt; Hi,<br>&gt;<br>&gt; I am trying to copile ITK v4 and I meet the following error.<br>&gt;<br>&gt; I am working witin this environmant :<br>&gt; Linux ei-cmo-230 2.6.40.6-0.fc15.i686.PAE #1 SMP Tue Oct 4 00:44:38 UTC 2011<br>
&gt; i686 i686 i386 GNU/Linux<br>&gt;<br>&gt; with gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)<br>&gt;<br>&gt;<br>&gt;<br>&gt; Building CXX object Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/metaUtils.o<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx: In function<br>
&gt; ‘bool MET_StringToWordArray(const char*, int*, char***)’:<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:800:3:<br>&gt; error: ‘ptrdiff_t’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:800:3: note:<br>
&gt; suggested alternatives:<br>&gt; /usr/lib/gcc/i686-redhat-linux/4.6.1/../../../../include/c++/4.6.1/i686-<br>&gt; redhat-linux/bits/c++config.h:156:15: note:   ‘std::ptrdiff_t’<br>&gt; /usr/lib/gcc/i686-redhat-linux/4.6.1/../../../../include/c++/4.6.1/i686-<br>
&gt; redhat-linux/bits/c++config.h:156:15: note:   ‘std::ptrdiff_t’<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:800:13:<br>&gt; error: expected ‘;’ before ‘l’<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:802:13:<br>
&gt; error: expected ‘;’ before ‘p’<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:803:9:<br>&gt; error: ‘p’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:803:11:<br>
&gt; error: ‘l’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:809:13:<br>&gt; error: expected ‘;’ before ‘pp’<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:811:9:<br>
&gt; error: ‘pp’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:811:12:<br>&gt; error: ‘l’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:824:3:<br>
&gt; error: ‘pp’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:824:6:<br>&gt; error: ‘l’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:840:13:<br>
&gt; error: expected ‘;’ before ‘i’<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:841:7:<br>&gt; error: ‘i’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:843:8:<br>
&gt; error: ‘p’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:849:11:<br>&gt; error: ‘p’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:853:5:<br>
&gt; error: ‘j’ was not declared in this scope<br>&gt; /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:854:11:<br>&gt; error: ‘p’ was not declared in this scope<br>&gt; make[2]: *** [Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/metaUtils.o] Error 1<br>
&gt; make[1]: *** [Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/all] Error 2<br>&gt; make: *** [all] Error 2<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Any suggestion to help?<br>&gt;<br>&gt; Regards,<br>&gt; Claire<br>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt; <a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;