mex not finding eigen library
Show older comments
I'm trying to use the Eigen 3.3.5 library with mex using Matlab2018a and OS X 10.13.6 and gcc 4.2.1. I installed it into /usr/local/lib using cmake and also put a symbolic link to it in /usr/local/include. I named the directory eigen. The terminal command gcc -xc -E -v - indicates that /usr/local/include is on the include path for gcc. Nonetheless, the command mex ep_bootdat.c (which has #include <Eigen>) results in "error: 'Eigen' file not found" I've also tried #include <eigen/Eigen> and #include <eigen>. I've also tried mex -I/usr/local/include/eigen/ ep_bootdat.c. Nothing seems to help. Can anyone suggest what might be going wrong?
Accepted Answer
More Answers (1)
Joseph
on 12 Aug 2018
Edited: Walter Roberson
on 12 Aug 2018
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!