安装 Eigen

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mifangdebaise/article/details/83050647

文章目录

安装 Eigen

摘抄自 Getting started

There is no library to link to. The only thing that you need to keep in mind when compiling the above program is that the compiler must be able to find the Eigen header files. The directory in which you placed Eigen’s source code must be in the include path. With GCC you use the -I option to achieve this, so you can compile the program with a command like this:
g++ -I /path/to/eigen/ my_program.cpp -o my_program

On Linux or Mac OS X, another option is to symlink or copy the Eigen folder into /usr/local/include/. This way, you can compile the program with:
g++ my_program.cpp -o my_program

猜你喜欢

转载自blog.csdn.net/mifangdebaise/article/details/83050647
今日推荐