Re: [eigen] Sparse and gcc-4.5 error

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


Benoit Jacob, my appologies for a false alarm. Due to latest updates i had 
gcc-4.6 installed (current git) and not 4.5. Later I tested with 4.5 and it 
compiled ok.

Žiga

On Wednesday 21 April 2010 20:43:19 Benoit Jacob wrote:
> The Sparse unit tests compile nicely here with gcc 4.5.0 / linux / x86-64.
> 
> Can you provide a test program and tell us your platform?
> 
> Benoit
> 
> 2010/4/21 Žiga Mlinar <ziga.mlinar@xxxxxxx>:
> > With gcc-4.5 i get the following when including Eigen/Eigen
> > 
> > In file included from ../include/eigen3/Eigen/Sparse:104:0,
> >                 from ../include/eigen3/Eigen/Eigen:2,
> >                 from triangle.cpp:3:
> > ../include/eigen3/Eigen/src/Sparse/SparseRedux.h:42:1: error: prototype
> > for ‘typename Eigen::ei_traits<Eigen::SparseMatrix<_Scalar, _Options>
> > >::Scalar Eigen::SparseMatrix<_Scalar, _Flags>::sum() const’ does not
> > match any in class ‘Eigen::SparseMatrix<_Scalar, _Flags>’
> > ../include/eigen3/Eigen/src/Sparse/SparseMatrix.h:536:12: error:
> > candidate is: Eigen::SparseMatrix<_Scalar, _Flags>::Scalar
> > Eigen::SparseMatrix<_Scalar, _Flags>::sum() const
> > ../include/eigen3/Eigen/src/Sparse/SparseRedux.h:50:1: error: prototype
> > for ‘typename Eigen::ei_traits<Eigen::SparseVector<_Scalar, _Options>
> > >::Scalar Eigen::SparseVector<_Scalar, _Flags>::sum() const’ does not
> > match any in class ‘Eigen::SparseVector<_Scalar, _Flags>’
> > ../include/eigen3/Eigen/src/Sparse/SparseVector.h:364:12: error:
> > candidate is: Eigen::SparseVector<_Scalar, _Flags>::Scalar
> > Eigen::SparseVector<_Scalar, _Flags>::sum() const
> > 
> > 
> > Same code compiles ok with gcc-4.4.
> > 
> > Žiga
> > 
> > P.S: This is my first time sending to this list and i have to say I like
> > Eigen a lot. Good work guys.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/