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

Linking errors

Tags: None
(comma "," separated)
daviddoria
Registered Member
Posts
46
Karma
0
OS

Linking errors

Mon Jul 11, 2011 12:30 pm
I am trying to compile a program which uses some UMFPACK functions from Eigen. I built and installed Eigen, then did

cd blas; make; make install
and
cd lapack; make make install

Then I tried to build my project linking to nothing, and got:

In function `Eigen::umfpack_free_numeric(void**, double)': undefined reference to `umfpack_di_free_numeric'.

When I link to 'umfpack', I then get:

/home/ddoria/bin/lib/libeigen_blas.so eigen_lapack libumfpack.a(umf_i_free.o): In function `umf_i_free': umf_free.c:(.text+0xb): undefined reference to `amd_free'. I then tried linking to umfpack and eigen_blas, but I get the same error.

I even then linked to everything I could find:

camd ccolamd ldl cholmod ufconfig rbio spqr klu umfpack amd btf colamd cxsparse eigen_blas

but now I get

libumfpack.a(umf_i_cholmod.o): In function `umf_i_cholmod': umf_cholmod.c:(.text+0x98): undefined reference to `cholmod_start'

Any suggestions of what the missing library is?

Thanks,

David
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Linking errors

Mon Jul 11, 2011 1:10 pm
read the umfpack manual! anyway, the following libs should be enough:

umfpack amd eigen_blas eigen_lapack


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]