Registered Member
|
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.:cholmod_super_numeric.c:(.text+0x1159): undefined reference to `_dpotrf_' /home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.:cholmod_super_numeric.c:(.text+0x12de): undefined reference to `_dpotrf_' /home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.:cholmod_super_numeric.c:(.text+0x203b): undefined reference to `_zpotrf_' /home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.:cholmod_super_numeric.c:(.text+0x2181): undefined reference to `_zpotrf_' /home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.:cholmod_super_numeric.c:(.text+0x2ede): undefined reference to `_zpotrf_' /home/prion/Eigen/eigen/SuiteSparse/CHOLMOD/Lib/libcholmod.a(cholmod_super_numeric.: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 |
Administrator
|
Moved from Amarok Forum to Eigen Forum.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
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.
|
Registered Member
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft