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

Sparse/SparseLLT Question

Tags: None
(comma "," separated)
Abhijit
Registered Member
Posts
5
Karma
0
OS

Sparse/SparseLLT Question

Tue Dec 28, 2010 4:05 am
HI All ,

I am using Eigen in my project. I am struggling on one issue , I would like to appreciate if anyone can help me on this,

Eigen::SparseLLT<Eigen::SparseMatrix<double,RowMajor>,Eigen::Cholmod> slu;
slu.compute(B);

I am getting linking error when I tried to call "slu.compute()" when I comment this line I can compile and link my code properly ,

Error :

/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x1159): undefined reference to `_dpotrf_'
/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x12de): undefined reference to `_dpotrf_'
/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x203b): undefined reference to `_zpotrf_'
/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x2181): undefined reference to `_zpotrf_'
/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x2ede): undefined reference to `_zpotrf_'
/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.o):cholmod_super_numeric.c:(.text+0x305e): undefined reference to `_zpotrf_'

Command using to compile my code :

prion@bangalore ~/Eigen/eigen/Example
$ g++ -I/home/prion/Eigen/eigen -I/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Include -I/home/prion/Eigen/eigen/SuiteSparse/UFconfig -I/home
/prion/Eigen/eigen/SuiteSparse/AMD/Include -I/home/prion/Eigen/eigen/SuiteSparse/CAMD/Include -I/home/prion/Eigen/eigen/SuiteSparse/CCOLAMD/
Include -I/home/prion/Eigen/eigen/SuiteSparse/COLAMD/Include ex1.cpp -L/home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib -lcholmod -L/home/pri
on/Eigen/eigen/SuiteSparse/UFconfig -lufconfig -L/home/prion/Eigen/eigen/SuiteSparse/AMD/Lib -lamd -L/home/prion/Eigen/eigen/SuiteSparse/CAM
D/Lib -lcamd -L/home/prion/Eigen/eigen/SuiteSparse/CCOLAMD/Lib -lccolamd -L/home/prion/Eigen/eigen/SuiteSparse/COLAMD/Lib -lcolamd -L/home/
prion/petsc-3.1-p5/cygwin-c-debug/lib -lf2cblas -L/home/prion/Eigen/eigen/SuiteSparse/metis-4.0 -lmetis -o ex1


Thanks in Advance.


Regards
Abhijit
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Sparse/SparseLLT Question

Tue Dec 28, 2010 6:29 am
Moved from Amarok Forum to Eigen Forum.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
jitseniesen
Registered Member
Posts
204
Karma
2

Re: Sparse/SparseLLT Question  Topic is solved

Wed Dec 29, 2010 12:09 pm
The CHOLMOD library requires the LAPACK library. The linker complains that it cannot find one of the functions provided in the LAPACK library. So try adding -llapack (or whatever the library is called on your system) to the options.
Abhijit
Registered Member
Posts
5
Karma
0
OS

Re: Sparse/SparseLLT Question

Thu Jan 06, 2011 10:38 am
Hi

Thanks I got the solution.



Regards
Abhijit


Bookmarks



Who is online

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