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

Umfpack std=c++0x problem

Tags: None
(comma "," separated)
traubi
Registered Member
Posts
8
Karma
0
OS

Umfpack std=c++0x problem

Wed Dec 29, 2010 2:21 pm
Hi,

I'm using:

#include <Eigen/Sparse>
#include <unsupported/Eigen/UmfPackSupport>

If I use the compile flag -std=c++0x I get multiple errors like:

eigen/unsupported/Eigen/src/SparseExtra/UmfPackSupport.h: In function ‘int Eigen::umfpack_symbolic(int, int, const int*, const int*, const std::complex<double>*, void**, const double*, double*)’:
/eigen/unsupported/Eigen/src/SparseExtra/UmfPackSupport.h:55: error: lvalue required as unary ‘&’ operand

I'm using g++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5, libumfpack5.4.0, eigen-3.0-beta2

I've got no clue on how to solve this. Can anyone help me fix this problem?

Cheers,
traubi
traubi
Registered Member
Posts
8
Karma
0
OS

Re: Umfpack std=c++0x problem

Thu Dec 30, 2010 9:15 am
Hi,

I switched to Super LU which solves my problem for now.

Cheers,
Traubi
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Umfpack std=c++0x problem

Sat Jan 01, 2011 10:41 am
I added parenthesis around Ax[0].real(), this should fix the issue.
traubi
Registered Member
Posts
8
Karma
0
OS

Re: Umfpack std=c++0x problem

Mon Jan 03, 2011 1:36 pm
ggael wrote:I added parenthesis around Ax[0].real(), this should fix the issue.


Thanks, I will try it as soon as possible.

Cheers Traubi


Bookmarks



Who is online

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