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

Eclipse Indexer does not work with Eigen 3.3

Tags: None
(comma "," separated)
yaroslavg
Registered Member
Posts
3
Karma
0
Hello,

I'm new to Eigen. I want to use Eigen 3.3, because I need the rounding functionality for arrays.
As an IDE I use Eclipse CDT. With Eigen 2.7 it works very well, but with Eigen 3.3, the Indexer does not work.

For example here:
Code: Select all
#include <iostream>
#include "Eigen/Dense"

using namespace Eigen;
using namespace std;

int main()
{
    ArrayXd v = ArrayXd::LinSpaced(7, -2, 2);
    cout << v << endl << endl;
    cout << round(v) << endl;
}

every line is marked with an error.

The compiler stil works perfectly...

It seems, like the Indexer does not see the includes.
Does someone know how to fix that?
yaroslavg
Registered Member
Posts
3
Karma
0
If I copy the file "Array" from Eigen 2.7, then the issue seems partially solved (much less is unrecognized)...

It is somehow strange, the File "Array" is recognized as a header file, while the other files without endings are not.
yaroslavg
Registered Member
Posts
3
Karma
0
I found out, that this gets better, if I don't copy all the eigen headers into my project, but leave them in an other place on the file system and just specify them on the include path.
Then (at least in my test program) no errors are marked, but the content assist stil does not work.


Bookmarks



Who is online

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