[Insight-developers] Compile error with vnl_vector_fixed.h from ITK 2.2.0

To Le toletite at yahoo.com
Mon Dec 19 21:12:24 EST 2005


Hi,
  Please help me to get over this. I try compile my code with ITK version < 2.2.0 It works fine. But with ITK version >= 2.2.0, the errors come from the vnl_vector_fixed.h file. 
  
In file included from /usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_matrix_fixed.txx:15,
                 from /usr/local/include/InsightToolkit_2.2.0/Common/itkImageBase.h:31,
                 from /usr/local/include/InsightToolkit_2.2.0/Common/itkImage.h:20,
                 from /usr/local/include/InsightToolkit_2.2.0/Common/itkImageToImageFilter.h:23,
                 from /usr/local/include/InsightToolkit_2.2.0/Common/itkInPlaceImageFilter.h:23,
                 from /usr/local/include/InsightToolkit_2.2.0/BasicFilters/itkUnaryFunctorImageFilter.h:20,
                 from /usr/local/include/InsightToolkit_2.2.0/BasicFilters/itkCastImageFilter.h:20,

   
  ....
  usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:87: error: syntax
   error before numeric constant
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:87: error: missing
   ';' before right brace
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:89: error: syntax
   error before `protected'
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:102: error: `
   T' was not declared in this scope
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:102: error: `
   n' was not declared in this scope
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:102: error: template
   argument 1 is invalid
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:102: error: template
   argument 2 is invalid
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:103: error: ISO
   C++ forbids declaration of `vnl_vector_fixed' with no type
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:103: error: ISO
   C++ forbids declaration of `rhs' with no type
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h: In
   function `int vnl_vector_fixed(const int&)':
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:103: error: `
   int vnl_vector_fixed(const int&)' redeclared as different kind of symbol
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_matrix_fixed.h:35: error: previous
   declaration of `template<class T, unsigned int n> class vnl_vector_fixed'
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_matrix_fixed.h:35: error: previous
   non-function declaration `template<class T, unsigned int n> class
   vnl_vector_fixed'
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:103: error: conflicts
   with function declaration `int vnl_vector_fixed(const int&)'
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:104: error: `
   data_' undeclared (first use this function)
/usr/local/include/InsightToolkit_2.2.0/Utilities/vxl/core/vnl/vnl_vector_fixed.h:104: error: (Each
   undeclared identifier is reported only once for each function it appears

  Thank you very much in advance.
   
  To Le

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20051219/88bd0366/attachment.htm


More information about the Insight-developers mailing list