ubuntu 16.04 + eigen3 installation (to solve the fatal error: Eigen / Core: No such file or directory)

 

1. installation

sudo apt-get install libeigen3-dev

 

2. 解决 fatal error: Eigen/Core: No such file or directory

When you call eigen library, will get an error: fatal error: Eigen / Core: No such file or directory

This is because the library is installed by default eigen the / usr / include / eigen3 / Eigen lower path, use the following command is mapped to / usr / include path

sudo ln -s /usr/include/eigen3/Eigen /usr/include/Eigen

 

Guess you like

Origin www.cnblogs.com/dinghongkai/p/11308805.html