Skip to content
Prev 4212 / 20628 Next

compiling CHOLMOD c code

On Tue, Jul 27, 2010 at 1:43 PM, Ryan King <c.ryan.king at gmail.com> wrote:
My guess is that this source file is very much like the
AMD/Source/amd_global.c file and the purpose of all these defines is
to accommodate incorporating these sources into Matlab.
Not really.  It is quite complicated trying to get all the CHOLMOD
pieces working with each other, which is one reason that Martin and I
decided to avoid the partitioning algorithms based on Metis.  (Also,
the last time we checked Metis is not available under an open source
license, which means we couldn't use it even if we could work out all
the linkage details.)

Generally the order in which you list object files for the linker is
important.  Linkers may have changed since I last looked at the
details but in the past they only did one pass over the object files
so if the reference to a particular symbol occurred after the
definition of the symbol it was not incorporated in the result.

The way that we did things in Matrix is to create archive (.a files)
from the CHOLMOD packages and then list those files in the link step.
Most versions of the ar program that creates archives put a symbol
table in the archive so that the order in which the files occur is
irrelevant.
Message-ID: <AANLkTinYbgSR-rDLM7ydktUXBoq5=54w6LWo=Z84fdJR@mail.gmail.com>
In-Reply-To: <AANLkTim2TvC3TL8CdXr47ShRycyMt4SukXP3HCoaFV6J@mail.gmail.com>