fatal error: Eigen/Dense: No such file or directory

前端 未结 6 1634
说谎
说谎 2020-12-13 19:18

I have installed libeigen3-dev in order to compile programs using Eigen 3. when I include a file, such as Eigen/Dense I get this error when I try t

6条回答
  •  有刺的猬
    2020-12-13 20:05

    I had this same problem on my Ubuntu 14 box. Ended up creating symlinks to get around it. With eigen3 installed in /usr/local/include do the following:

    cd /usr/local/include
    sudo ln -sf eigen3/Eigen Eigen
    sudo ln -sf eigen3/unsupported unsupported
    

    You should now be able to include the headers by:

    #include 
    #include 
    

提交回复
热议问题