[Insight-users] error when building itk
Radim Adolt
adolt at mendelu.cz
Tue Jan 4 04:35:32 EST 2005
Could somebody give me a hand with following problem ?
configuration with Cmake seemed to be ok,
running the make command I got this error message
"
/home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_sparse_matrix.txx:
In member function `void vnl_sparse_matrix<T>::set_row(unsigned int, const
std::vector<int, std::allocator<int> >&, const std::vector<T,
std::allocator<_CharT> >&) [with T = vnl_rational]':
/home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/Templates/vnl_sparse_matrix+vnl_rational-.cxx:5:
instantiated from here
/home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_sparse_matrix.txx:446:
error: dependent-name `vnl_sparse_matrix_pair<T>::less' is parsed as a
non-type, but instantiation yields a type
/home/radim/install/itk/InsightToolkit-1.8.0/Utilities/vxl/core/vnl/vnl_sparse_matrix.txx:446:
note: say `typename vnl_sparse_matrix_pair<T>::less' if a type is meant
make[9]: *** [Templates/vnl_sparse_matrix+vnl_rational-.o] Error 1
make[8]: *** [default_target] Error 2
make[7]: *** [default_target_vnl] Error 2
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_core] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_vxl] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Utilities] Error 2
make: *** [default_target] Error 2
"
I work on Linux - Mandrake 10.1 community, the version of my gcc compiler is
gcc 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)
I also tried to compile VXL prior to ITK but simillar kind of problem occured
with VXL.
My guess is - provided the source code is ok (I belive it is) - there might be
something wrong within my compiler.
Please could you help me somhow, have somebody experienced a problem like
this ?
many thanks
R. A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050104/852ec596/attachment.htm
More information about the Insight-users
mailing list