This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Errors compiling with Eigen 3

Tags: None
(comma "," separated)
hazemkrichene
Registered Member
Posts
7
Karma
0

Errors compiling with Eigen 3

Tue Dec 19, 2017 2:39 am
Dear All,

I'm very new in using Eigen software with C++ (windows 10 and eclipse Helios). My Eigen file is under C:/Program Files/Cpp_Libraries/eigen3. I put this path with the MinGW complier (version 7.0).

I run successfully the first program try in Eigen official tutorial:

Code: Select all
#include <iostream>
#include <Eigen/Dense>
using Eigen::MatrixXd;
int main()
{
  MatrixXd m(2,2);
  m(0,0) = 3;
  m(1,0) = 2.5;
  m(0,1) = -1;
  m(1,1) = m(1,0) + m(0,1);
  std::cout << m << std::endl;
}


However, the second program generates many errors:

Code: Select all
#include <iostream>
#include <Eigen/Dense>
using namespace Eigen;
using namespace std;
int main()
{
  MatrixXd m = MatrixXd::Random(3,3);
  m = (m + MatrixXd::Constant(3,3,1.2)) * 50;
  cout << "m =" << endl << m << endl;
  VectorXd v(3);
  v << 1, 2, 3;
  cout << "m * v =" << endl << m * v << endl;
}


this code generates the following 72 errors:

Description Resource Path Location Type
[ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] My_ERGM line 284, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\ProductBase.h C/C++ Problem
[ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] My_ERGM line 118, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\ProductBase.h C/C++ Problem
[ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] My_ERGM line 452, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\GeneralProduct.h C/C++ Problem
[ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] My_ERGM line 470, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\GeneralProduct.h C/C++ Problem
[ skipping 7 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] My_ERGM line 630, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
[ skipping 8 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] My_ERGM line 630, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'const typename Eigen::ProductReturnType<Derived, OtherDerived>::Type Eigen::MatrixBase<Derived>::operator*(const Eigen::MatrixBase<OtherDerived>&) const [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Matrix<double, -1, -1>; typename Eigen::ProductReturnType<Derived, OtherDerived>::Type = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>]' My_ERGM line 63, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\ProductBase.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >; Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >; Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 507, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, 1> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, 1> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 507, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_random_op<double>, Eigen::Matrix<double, -1, -1> >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 507, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 507, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, -1>; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, -1>; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 507, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 507, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 506, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 507, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::setConstant(const Scalar&) [with Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; Eigen::DenseBase<Derived>::Scalar = double]' My_ERGM line 334, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\CwiseNullaryOp.h C/C++ Problem
required from 'Derived& Eigen::DenseBase<Derived>::setZero() [with Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 501, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\CwiseNullaryOp.h C/C++ Problem
required from 'Derived& Eigen::MatrixBase<Derived>::operator+=(const Eigen::MatrixBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 224, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\CwiseBinaryOp.h C/C++ Problem
required from 'Derived& Eigen::MatrixBase<Derived>::operator=(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >; Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 571, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::MatrixBase<Derived>::operator=(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >; Derived = Eigen::SelfCwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, Eigen::Matrix<double, -1, 1>, Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > > >]' My_ERGM line 571, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::MatrixBase<Derived>::operator=(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 571, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set_noalias(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, 1> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 653, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set_noalias(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_random_op<double>, Eigen::Matrix<double, -1, -1> >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 653, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set_noalias(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 653, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set_noalias(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 653, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set_noalias(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 653, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set_noalias(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, -1>; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 653, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set_noalias(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 653, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::_set(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 630, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, 1> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 414, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_random_op<double>, Eigen::Matrix<double, -1, -1> >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 414, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 414, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 414, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, -1>; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 414, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Derived& Eigen::PlainObjectBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 414, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'Eigen::DenseBase<Derived>::EvalReturnType Eigen::DenseBase<Derived>::eval() const [with Derived = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; Eigen::DenseBase<Derived>::EvalReturnType = const Eigen::Matrix<double, -1, 1>]' My_ERGM line 365, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\DenseBase.h C/C++ Problem
required from 'Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const Eigen::MatrixBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_random_op<double>, Eigen::Matrix<double, -1, -1> >; _Scalar = double; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]' My_ERGM line 296, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Matrix.h C/C++ Problem
required from 'Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const Eigen::MatrixBase<OtherDerived>&) [with OtherDerived = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; _Scalar = double; int _Rows = -1; int _Cols = 1; int _Options = 0; int _MaxRows = -1; int _MaxCols = 1]' My_ERGM line 296, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Matrix.h C/C++ Problem
required from 'Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>&&) [with _Scalar = double; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]' My_ERGM line 220, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Matrix.h C/C++ Problem
required from 'Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>&&) [with _Scalar = double; int _Rows = -1; int _Cols = 1; int _Options = 0; int _MaxRows = -1; int _MaxCols = 1]' My_ERGM line 220, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Matrix.h C/C++ Problem
required from 'Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>& Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::operator=(const Eigen::MatrixBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >; _Scalar = double; int _Rows = -1; int _Cols = -1; int _Options = 0; int _MaxRows = -1; int _MaxCols = -1]' My_ERGM line 172, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Matrix.h C/C++ Problem
required from 'Eigen::SelfCwiseBinaryOp<BinOp, Lhs, Rhs>& Eigen::SelfCwiseBinaryOp<BinOp, Lhs, Rhs>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with RhsDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >; BinaryOp = Eigen::internal::scalar_sum_op<double>; Lhs = Eigen::Matrix<double, -1, 1>; Rhs = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >]' My_ERGM line 137, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\SelfCwiseBinaryOp.h C/C++ Problem
required from 'Eigen::SelfCwiseBinaryOp<BinOp, Lhs, Rhs>& Eigen::SelfCwiseBinaryOp<BinOp, Lhs, Rhs>::operator=(const Rhs&) [with BinaryOp = Eigen::internal::scalar_sum_op<double>; Lhs = Eigen::Matrix<double, -1, 1>; Rhs = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >]' My_ERGM line 150, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\SelfCwiseBinaryOp.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; OtherDerived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Matrix<double, -1, -1>; OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_random_op<double>, Eigen::Matrix<double, -1, -1> >]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Matrix<double, -1, -1>; OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Matrix<double, -1, -1>; OtherDerived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Matrix<double, -1, 1>; OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, 1> >]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Matrix<double, -1, 1>; OtherDerived = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Matrix<double, -1, 1>; OtherDerived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::Matrix<double, -1, 1>; OtherDerived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static Derived& Eigen::internal::assign_selector<Derived, OtherDerived, false, false>::run(Derived&, const OtherDerived&) [with Derived = Eigen::SelfCwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, Eigen::Matrix<double, -1, 1>, Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > > >; OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> > >]' My_ERGM line 527, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
required from 'static void Eigen::internal::gemv_selector<2, 0, true>::run(const ProductType&, Dest&, const typename ProductType::Scalar&) [with ProductType = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; Dest = Eigen::Matrix<double, -1, 1>; typename ProductType::Scalar = double]' My_ERGM line 456, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\GeneralProduct.h C/C++ Problem
required from 'static void Eigen::internal::gemv_selector<2, 0, true>::run(const ProductType&, Dest&, const typename ProductType::Scalar&) [with ProductType = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; Dest = Eigen::Matrix<double, -1, 1>; typename ProductType::Scalar = double]' My_ERGM line 460, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\GeneralProduct.h C/C++ Problem
required from 'std::ostream& Eigen::operator<<(std::ostream&, const Eigen::DenseBase<Derived>&) [with Derived = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; std::ostream = std::basic_ostream<char>]' My_ERGM line 245, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\IO.h C/C++ Problem
required from 'void Eigen::GeneralProduct<Lhs, Rhs, 4>::scaleAndAddTo(Dest&, const Scalar&) const [with Dest = Eigen::Matrix<double, -1, 1>; Lhs = Eigen::Matrix<double, -1, -1>; Rhs = Eigen::Matrix<double, -1, 1>; Eigen::GeneralProduct<Lhs, Rhs, 4>::Scalar = double]' My_ERGM line 344, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\GeneralProduct.h C/C++ Problem
required from 'void Eigen::PlainObjectBase<Derived>::_set_selector(const OtherDerived&, const Eigen::internal::false_type&) [with OtherDerived = Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, 1> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 638, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'void Eigen::PlainObjectBase<Derived>::_set_selector(const OtherDerived&, const Eigen::internal::false_type&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, -1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Matrix<double, -1, -1> > > >; Derived = Eigen::Matrix<double, -1, -1>]' My_ERGM line 638, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'void Eigen::PlainObjectBase<Derived>::_set_selector(const OtherDerived&, const Eigen::internal::false_type&) [with OtherDerived = Eigen::Map<Eigen::Matrix<double, -1, 1>, 1, Eigen::Stride<0, 0> >; Derived = Eigen::Matrix<double, -1, 1>]' My_ERGM line 638, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\PlainObjectBase.h C/C++ Problem
required from 'void Eigen::ProductBase<Derived, Lhs, Rhs>::evalTo(Dest&) const [with Dest = Eigen::Matrix<double, -1, 1>; Derived = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; Lhs = Eigen::Matrix<double, -1, -1>; Rhs = Eigen::Matrix<double, -1, 1>]' My_ERGM line 109, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\ProductBase.h C/C++ Problem
required from 'void Eigen::ProductBase<Derived, Lhs, Rhs>::scaleAndAddTo(Dest&, const Scalar&) const [with Dest = Eigen::Matrix<double, -1, 1>; Derived = Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, 4>; Lhs = Eigen::Matrix<double, -1, -1>; Rhs = Eigen::Matrix<double, -1, 1>; Eigen::ProductBase<Derived, Lhs, Rhs>::Scalar = double]' My_ERGM line 118, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\ProductBase.h C/C++ Problem
required from here My_ERGM.cpp /My_ERGM/src line 101 C/C++ Problem
required from here My_ERGM.cpp /My_ERGM/src line 102 C/C++ Problem
required from here My_ERGM.cpp /My_ERGM/src line 106 C/C++ Problem
decomposition declaration only available with -std=c++1z or -std=gnu++1z My_ERGM.cpp /My_ERGM/src line 50 C/C++ Problem
enum constant in boolean context [-Wint-in-bool-context] My_ERGM line 145, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\products\GeneralMatrixVector.h C/C++ Problem
enum constant in boolean context [-Wint-in-bool-context] My_ERGM line 146, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\products\GeneralMatrixVector.h C/C++ Problem
enum constant in boolean context [-Wint-in-bool-context] My_ERGM line 402, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
enum constant in boolean context [-Wint-in-bool-context] My_ERGM line 53, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
enum constant in boolean context [-Wint-in-bool-context] My_ERGM line 54, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
enum constant in boolean context [-Wint-in-bool-context] My_ERGM line 57, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
enum constant in boolean context [-Wint-in-bool-context] My_ERGM line 96, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\Assign.h C/C++ Problem
this 'if' clause does not guard... [-Wmisleading-indentation] My_ERGM line 574, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\products\GeneralBlockPanelKernel.h C/C++ Problem
this 'if' clause does not guard... [-Wmisleading-indentation] My_ERGM line 946, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\products\GeneralBlockPanelKernel.h C/C++ Problem
this 'if' clause does not guard... [-Wmisleading-indentation] My_ERGM line 951, external location: C:\Program Files\Cpp_Libs\eigen3\Eigen\src\Core\products\GeneralBlockPanelKernel.h C/C++ Problem
unused variable 'xx' [-Wunused-variable] My_ERGM.cpp /My_ERGM/src line 50 C/C++ Problem
unused variable 'yy' [-Wunused-variable] My_ERGM.cpp /My_ERGM/src line 50 C/C++ Problem


Any help please?
hazemkrichene
Registered Member
Posts
7
Karma
0

Re: Errors compiling with Eigen 3

Tue Dec 19, 2017 4:05 am
I used CMD command on windows, and program compiled very well!! This is the used command:
Code: Select all
g++ -I C:/Hazem/eigen3/ My_ERGM.cpp -o My_ERGM
.

Is it a problem of compiling from eclipse? On eclipse i included the path as follows: project -- properties -- settings -- GCC C++ complier -- Includes and i added the path: C:/Hazem/eigen3/

Is there anything else?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]