[Insight-users] ITK and gcc version
Ran Tao
garfieldtao at gmail.com
Fri Oct 20 18:08:03 EDT 2006
Hi,
I tried to compile my code by using gcc 4.1.0 (SUSE 10.1 gcc default
version). It seems gcc 4.1.0 does not work for ITK.
In the code, I use the following lines to invoke vnl_matrix_inverse.
vnl_vector<double> dwVector(6);
vnl_matrix<double> gradMatrix;
gradMatrix.set_size(6, 6);
vnl_vector<double> estimatedTensorVector(6);
//some code initialize the gradMatrix
........................
//get the inverse matrix
estimatedTensorVector = vnl_matrix_inverse<double>(gradMatrix) *
dwVector;
The compiler complains:
/Insight/Utilities/vxl/core/vnl/algo/vnl_svd.h:193: error:
'vnl_svd<T>::vnl_svd(const vnl_svd<T>&) [with T = double]' is private
/Insight/Utilities/vxl/core/vnl/algo/vnl_matrix_inverse.h:35: error:
within this context
/Code/Tensor.txx:70 synthesized method
'vnl_matrix_inverse<double>::vnl_matrix_inverse(const
vnl_matrix_inverse<double>&)' first required here
Tensor.txx is my code.
Have anyone met this problem before? Should I change the gcc to an old
version?
Any help will be greatly appreciated.
Thanks,
Chris
More information about the Insight-users
mailing list