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 <<a href="mailto:Claire.Mouton@creatis.insa-lyon.fr">Claire.Mouton@creatis.insa-lyon.fr</a>> wrote:<br>
> Hi,<br>><br>> I am trying to copile ITK v4 and I meet the following error.<br>><br>> I am working witin this environmant :<br>> Linux ei-cmo-230 2.6.40.6-0.fc15.i686.PAE #1 SMP Tue Oct 4 00:44:38 UTC 2011<br>
> i686 i686 i386 GNU/Linux<br>><br>> with gcc (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9)<br>><br>><br>><br>> Building CXX object Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/metaUtils.o<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx: In function<br>
> bool MET_StringToWordArray(const char*, int*, char***):<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:800:3:<br>> error: ptrdiff_t was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:800:3: note:<br>
> suggested alternatives:<br>> /usr/lib/gcc/i686-redhat-linux/4.6.1/../../../../include/c++/4.6.1/i686-<br>> redhat-linux/bits/c++config.h:156:15: note: std::ptrdiff_t<br>> /usr/lib/gcc/i686-redhat-linux/4.6.1/../../../../include/c++/4.6.1/i686-<br>
> redhat-linux/bits/c++config.h:156:15: note: std::ptrdiff_t<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:800:13:<br>> error: expected ; before l<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:802:13:<br>
> error: expected ; before p<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:803:9:<br>> error: p was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:803:11:<br>
> error: l was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:809:13:<br>> error: expected ; before pp<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:811:9:<br>
> error: pp was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:811:12:<br>> error: l was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:824:3:<br>
> error: pp was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:824:6:<br>> error: l was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:840:13:<br>
> error: expected ; before i<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:841:7:<br>> error: i was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:843:8:<br>
> error: p was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:849:11:<br>> error: p was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:853:5:<br>
> error: j was not declared in this scope<br>> /home2/code/CTK/CTK-superbuild/ITK/Utilities/MetaIO/metaUtils.cxx:854:11:<br>> error: p was not declared in this scope<br>> make[2]: *** [Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/metaUtils.o] Error 1<br>
> make[1]: *** [Utilities/MetaIO/CMakeFiles/ITKMetaIO.dir/all] Error 2<br>> make: *** [all] Error 2<br>><br>><br>><br>><br>> Any suggestion to help?<br>><br>> Regards,<br>> Claire<br>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html">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.html">http://www.kitware.com/products/protraining.html</a><br>><br>> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ">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">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>