compiler errors - How use Eigen library in Dev C++? -


i downloaded library eigen.tuxfamily , decompress in folder called eigen. code in dev c++ (and in same directory of eigen folder):

#include <iostream> #include <eigen/eigen/dense> using namespace eigen; using namespace std;  matrixxd m(2,2);  int main() {        m(0,0) = 3;        m(1,0) = 2.5;        m(0,1) = -1;        m(1,1) = m(1,0) + m(0,1);        cout << m << endl; } 

but program displays following error:

eigen/eigen/dense: no such file or directory. , more errors arising.

have set in program? how fix it? , regards.

it me bad idea work inside eigen's directory. quick fix replace <> " in

#include <eigen/eigen/dense> 

to

#include "eigen/eigen/dense" 

however should consider using gcc -i -l -l flags use external library.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -