fatal error: Eigen/Dense: No such file or directory.
I am using gcc compiler. I copied the source files of eigen to directory of gcc. But still error is there. Can anyone suggest something? I am using codeblocks IDE.
With GCC you use the -I option to achieve this, so you can compile the program with a command like this:
g++ -I /path/to/eigen/ my_program.cpp -o my_program
In Code::Blocks under Projects->Build Options->Compiler Settings->Other options put -I/path/to/eigen3
Alternatively, if you use pkg-config put `pkg-config --cflags eigen3` (note the backticks)