This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Visual Studio C++ project with Eigen

Tags: None
(comma "," separated)
jah
Registered Member
Posts
1
Karma
0
OS
I have spent so many hours trying to download and install and run Eigen with my visual studio 2010 c++ project and now I finally gave up. So I'm asking you how to do it. I downloaded the zip, extracted it, moved the Eigen folder to my favorite directory, as I was told in the install text file, and then I right-clicked on properties and edited the include directory to include that favorite directory that has Eigen in it. And now I can't include the outer files, like #include <Eigen\Dense>, as is seen in the examples. I'd have to include individual files, but if I don't include all of them, the code fails to compile. So how do I fix this problem so I can include folders instead of individual files? This is very frustrating.

Here's my directory structure:
Favorite_Folder\Eigen\src\Core(Eigenvalues, Jacobi, etc.)

I tell visual studio include to point to Favorite_Folder.

Then in my project, I say #include <Eigen\Dense>

I've tried other combinations, like renaming the src folder to 'Eigen', restructuring the directory structure as:

Favorite_Folder\Eigen\Core(Eigenvalues, Jacobi, etc.)

Nothing works. Could you please help me?
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Notice that there is a dedicated Eigen forum:
viewforum.php?f=74

I have no idea why this is not working for you, since it seems that you are doing the right thing.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Moved into Eigen sub-forum.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
juliocesara
Registered Member
Posts
1
Karma
0
Hi,

I am having the same problem.

I have a second internal drive where I have installed Visual Studio Community 2013 and where I have copied the Eigen folder, the one from the .zip file. I have also included this path to the additional include directories option in "Project->Options->Configuration Properties -> C/C++-> General".

Somehow I can NOT do "#include <Eigen/Core>" for example. I would have to include ALL files inside the Core folder, which is just crazy!

Can anyone help me please!?

Best Regards,
Julio


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]