[Insight-users] ITK and gcc version

Frank Miller frankmiller at jhmi.edu
Wed Oct 25 10:01:12 EDT 2006


Ran,

This does not look like a compiler issue. Your code is calling the 
private copy constructor.

Frank

Ran Tao wrote:
> 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
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list