I'm currently following this Eigen: Getting Started to try to compile my C++ file using the Eigen Library but I'm running into a bunch of errors. My current directory contains my main.cpp, network.h and the Eigen Library which contains a directory called Eigen and a bunch of other folders. The guide says to just put in the path to folder, containing the header files. I'm currently using g++ -I eigenLibrary/Eigen main.cpp -o network to compile, but I keep getting the error fatal error: 'Eigen/Dense' file not found #include <Eigen/Dense>. I'm trying implement the code in this tutorial . How can I make sure I'm linking the libraries in the right format. I don't have much experience with C++
EDIT: I've tried copying the Eigen subdirectory into /usr/local/include and running g++ -I /usr/local/include/Eigen/Dense main.cpp -o main to no success.