crystalclear crystalclear - 3 months ago 25
C++ Question

Installing the Eigen library in Visual C++ 2010

How can I install the Eigen library in Visual C++ 2010? I downloaded the library from eigen.tuxfamily

But I do not know how can install it on my Visual C++. I want to run a program I downloaded and it has the following:

#include <Eigen/Core>
using namespace Eigen;

How can I do this? I have tried to look online but I seem to get confused. Could someone explain to me how I can do it?


Eigen is mostly header-only library. All that you need is to add Eigen path to (MSVC2010):

Project Properties -> C/C++ -> General -> Additional Include Directories

Let's say you have header Core in folder C:/folder1/folder2/Eigen/, i.e.:


So you should add path C:/folder1/folder2 to Additional Include Directories.