[Insight-users] vnl compilation error

Sebastian Fiorentini Sebastian Fiorentini <sebasfiorent at yahoo . com . ar>
Mon, 27 May 2002 16:39:09 -0300


Hello All..

Well, i've dealed with an horrible error in vnl_rpoly_solve.h (in
directory Code/Numerics/vxl/vnl/algo) which caused a build error with
Visual Studio 6.0..

The original lines (coming from CVS repository) were: (at the top of
the include file)

#ifndef WIN32
  static const unsigned int M = 11;   // Maximum dimension of problem
  static const unsigned int T = 2500; // Max. number of terms in a polynomial
#else
  enum { M = 11 };   // Maximum dimension of problem
  enum { T = 2500 }; // Maximum number of terms in a polynomial
#endif


and i've changed them (with surprisingly success :) ) to:

//#ifndef WIN32
//  static const unsigned int M = 11;   // Maximum dimension of problem
//  static const unsigned int T = 2500; // Max. number of terms in a polynomial
//#else
  enum { M = 11 };   // Maximum dimension of problem
  enum { T = 2500 }; // Maximum number of terms in a polynomial
//#endif


Well.. I hope that this can help anybody else...

Greetings from Argentina...

Saludos...Sebas..
sebasfiorent@yahoo.com.ar