[Insight-users] ITK and gcc version

Luis Ibanez luis.ibanez at kitware.com
Thu Oct 26 08:18:25 EDT 2006


Hi Chris,


ITK (CVS version of today) Compiles fine with GCC 4.1.

This is the specific version we have verified:

   gcc (GCC) 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)

 From a Debian Linux (Testing) installation.


 From you email, it seems that the problem is not when
building ITK but when you try to use it in your project.


Could you please post to the list a minimal source code
example (not a snippet, but a complete file) that we can
use to attempt to reproduce the problem that you are
observing ?



    Thanks


      Luis



==============
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