Adding Eigen library in Dev C++

This topic has been answered before, but it does not work for me.
I am trying to add the Eigen library in Dev C++, but after following the steps explained in previous topics, when I try to compile the following code I get the message: Eigen/Dense: No such file or directory.

1
2
3
4
5
6
7
8
9
10
11
12
#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;
}


What I am doing is as follows: Main menu, tools->compiler options. Select the "Directories" tab, then the "C++ Includes" tab. At the bottom-right of the panel there is an icon to click in order to browse to the directory where the Eigen files are located. In my case the path is: C:\Dev-Cpp\include\eigen

I have also tried many different options but not successfully.

It works with Visual C++, but not with Dev C++.
following
Topic archived. No new replies allowed.