[Insight-developers] Sun Compiler
Lorensen, William E (Research)
lorensen at crd.ge.com
Fri Nov 5 07:25:50 EST 2004
In itkMacro.h these is code:
#if defined(_MSC_VER) && (_MSC_VER <= 1300)
# define ITK_NO_INCLASS_MEMBER_INITIALIZATION
#endif
#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x540)
# define ITK_NO_INCLASS_MEMBER_INITIALIZATION
#endif
#if defined(__SVR4) && !defined(__SUNPRO_CC)
# define ITK_NO_INCLASS_MEMBER_INITIALIZATION
#endif
Looks like some magic may be required for the sun compiler. Can you check to
see if the define is being executed for the native sun compiler. If so,
maybe it should not be?
Bill
-----Original Message-----
From: William A. Hoffman [mailto:billlist at nycap.rr.com]
Sent: Thursday, November 04, 2004 10:09 PM
To: insight-developers at itk.org
Subject: [Insight-developers] Sun Compiler
We have a new sun at Kitware and I thought I would give the native compiler
a go.
Here are the errors:
http://www.itk.org/Testing/Sites/dashsun1/SunOS-CC/20041104-2212-Experimenta
l/BuildError.html
The majority of errors come from this type of thing:
"/.../Insight/Code/Common/itkPointSet.txx", line 299: Error: An integer
constant expression is required within the array subscript operator.
1 Error(s) detected.
***
template <typename TPixelType, unsigned int VDimension, typename
TMeshTraits>
bool
PointSet<TPixelType, VDimension, TMeshTraits>
::FindClosestPoint(CoordRepType[PointDimension],
PointIdentifier*)
{
The compiler does not like PointDimension, but if you change it to
VDimension it compiles.
Is this some sort of strange thing for the borland compiler?
-Bill
_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list