Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Eigen library to c++ project

Probably a dumb / simple question, but I have not been able to find an answer. I have no clue how adding libraries works with CodeBlocks c++. I downloaded the .zip file from http://eigen.tuxfamily.org/index.php?title=Main_Page and extracted the files into my directory. How can I use this library now in my project?

like image 306
Mike James Johnson Avatar asked Apr 13 '16 20:04

Mike James Johnson


1 Answers

Add one line of code to your source file where you want to use Eigen.

#include "Eigen/Dense"

Put Eigen (extracted zip file) in a directory where you put your existing working header file.

like image 197
m. c. Avatar answered Nov 02 '22 06:11

m. c.