I’m trying to use the Eigen C++ template library for linear algebra, I compiled and installed the library to the following path /usr/local/include
I took a sample code from their site and I tried to compile with and without the -l option.
g++ -l /usr/local/include/eigen3 test.cpp -o mytest
but I’m getting the following error:
test.cpp:2:23: fatal error: Eigen/Dense: No such file or directory
How can I include this library?
You want to use the
-Ioption, not-l