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

Method 'col' could not be resolved

Tags: None
(comma "," separated)
changyan
Registered Member
Posts
6
Karma
0

Method 'col' could not be resolved

Thu Aug 28, 2014 6:08 am
I use eclipse as my IDE, and I got a bothersome error as the title said. I just install the Eigen into /usr/local/include floder by default.
Although the code works well, I am still upset with it. I switch to Code::Blocks, there is no error when compiling, however if I try to locate the
'col' method, it just can't find it. Now I use Visual studio, and it works! So any one tell me how to fix the 'parse' problem with Eclipse or Code::Blocks
under linux?

The code is like this:
typedef std::complex<double> cd;
typedef SparseVector<cd> SpVecXcd;
typedef SparseMatrix<cd> SpMatXcd;

SpMatXcd m1(5,5);
SpVecXcd v1(5);
v1.insert(2)=cd(2,3);
m1.col(0)=v1;

Thank you!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You should rather report the error to Ecplise and Code::Blocks. It's not our problem if their parser cannot properly parse C++ template code.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]