Registered Member
|
Hello,
I'm seeing a very weird error while extending the MatrixBase class as explained in http://eigen.tuxfamily.org/dox-3.2/Topi ... Eigen.html I have defined my additions in MatrixBaseAddons.h file and then, before including the Eigen with #include <eigen3/Eigen/Dense> I define the macro as #define EIGEN_MATRIXBASE_PLUGIN "MatrixBaseAddons.h" However, when I compile my project with g++ -std=c++11 test.cpp -o test I see the following error In file included from /usr/local/include/eigen3/Eigen/Dense:1: In file included from /usr/local/include/eigen3/Eigen/Core:410: /usr/local/include/eigen3/Eigen/src/Core/MatrixBase.h:130:15: fatal error: 'MatrixBaseAddons.h' file not found # include EIGEN_MATRIXBASE_PLUGIN ^ ./matrix.hpp:12:33: note: expanded from macro 'EIGEN_MATRIXBASE_PLUGIN' #define EIGEN_MATRIXBASE_PLUGIN "MatrixBaseAddons.h" I don't understand what I'm possibly doing wrong with this. My MatrixBAseAddons.h file is placed where my test.cpp file is. I'm scratching my head because I cannot really find out what can go wrong here It looks very simple thing but is not working... Thanks in advance for your help, Jack |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]