[Insight-users] intmax_t typedef issue with ITKSNAP (same issue as with SOViewer)
Luis Ibanez
luis.ibanez at kitware.com
Tue May 25 11:36:51 EDT 2010
Hi Juan,
The fix to this problem was identified
several weeks ago.
The problem is not with ITK code itself.
The real offenders are a set of statements:
using namespace itk;
that are scattered across ITK SNAP code.
These statements defeat the purpose of having
namespaces, and must therefore be removed.
We have fixed the version in Insight Applications
http://www.itk.org/cgi-bin/viewcvs.cgi/SNAP/?root=InsightApplications
See for example:
http://www.itk.org/cgi-bin/viewcvs.cgi/SNAP/Common/?root=InsightApplications&sortby=date#dirlist
and more specifically:
http://www.itk.org/cgi-bin/viewcvs.cgi/SNAP/Common/SystemInterface.cxx?root=InsightApplications&r1=1.9&r2=1.12&sortby=date
http://www.itk.org/cgi-bin/viewcvs.cgi/SNAP/Common/Registry.cxx?root=InsightApplications&r1=1.13&r2=1.14&sortby=date
(...among others...)
You may want to use that code updated
in InsightApplications
or
you could remove the offending lines in the
version of SNAP that you are using.
Regards,
Luis
--------------------------------------------------------------
On Fri, May 14, 2010 at 1:58 PM, Juan Cardelino
<juan.cardelino at gmail.com> wrote:
> I'm experiencing the same problem mentioned in this message:
> http://www.itk.org/pipermail/insight-users/2010-February/035133.html
> with gcc 4.4.3, ubuntu 64bits, and ITK and itksnap from cvs repository
> (latest version at the moment of writing).
> The solution was the same for me, commenting out 4 lines regarding the
> definition of the types.
>
> lines 140 and 141
> //typedef ::intmax_t intmax_t;
> //typedef ::uintmax_t uintmax_t;
>
> lines 113 and 114
> //typedef ::int64_t int64_t;
> //typedef ::uint64_t uint64_t;
>
> Already posted on the bug tracker also.
> Regards,
> Juan
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list