[Insight-users] ITK + MinGW64 + Gcc

Sergio Vera sergio.vera at alma3d.com
Thu Apr 15 04:04:31 EDT 2010


Hi folks.

I've been using ITK (3.16.0) with MinGW32 (gcc 3.4.5) and Visual studio 9 so
far without any noticeable problems.

I want to try MinGW 64 to build 64 bit binaries with GCC but I've
encountered some compilation problems. After googling around for a while I
have not found any similar case.

C:/work/src/InsightToolkit-3.16.0/Code/Common/itkNumericTraits.cxx:63:17:
error: specializing member 'itk::NumericTraits<long long unsigned
int>::Zero' requires 'template<>' syntax
C:/work/src/InsightToolkit-3.16.0/Code/Common/itkNumericTraits.cxx:64:17:
error: specializing member 'itk::NumericTraits<long long unsigned int>::One'
requires 'template<>' syntax

the referenced lines in the error are those lines (itkNumericTraits.cxx):

#ifdef _WIN64
typedef std::string::size_type size_type;
const size_type NumericTraits<size_type>::Zero = 0.0;
const size_type NumericTraits<size_type>::One = 1.0;
#endif

does anyone has experienced similar problems with MinGW64?

Thanks

-- 
Sergio Vera

Alma IT Systems
C/ Vilana, 4B, 4º 1ª
08022 Barcelona
T. (+34) 932 380 592
www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100415/4fc6a471/attachment.htm>


More information about the Insight-users mailing list