[Insight-users] Compiling on Solaris

Chris Gammage damage at wayne.edu
Thu Jul 22 23:42:23 EDT 2004


I've tried building ITK on a Solaris box
I changed the default compiler to mpiCC
and when I compile
it says

.. vnl_math.h", line 55 Error: A member cannot be initialized except in a 
constructor.
.. vnl_math.h", line 56 Error: Use ";" to terminate declarations.

etc. for lines 57, 58, 59, ... , 67

those lines declare static public members

static VNL_DLL_DATA const double e 
VCL_STATIC_CONST_INIT_FLOAT_DECL(2.7182818284590452354);
etc..  for log2e, log10e, ln2, ln10, pi, pi_over_2, pi_over_4, one_over_pi, 
two_over_pi, two_over_sqrtpi, sqrt2, and sqrt1_2
all static VNL_DLL_DATA const double

any suggestions on how to fix this?

Thanks in advance
Chris


More information about the Insight-users mailing list