With a big help from the community, I've fixed my problem.  I had to include the extra-libraries when building the hcholmod library.  I'll push a new version later today.  

Tad



On Fri, Oct 4, 2013 at 12:36 PM, Tad Doxsee <tad.doxsee@gmail.com> wrote:
Hi,

I'm trying to create an FFI library to CHOLMOD (http://www.cise.ufl.edu/research/sparse/cholmod/) but am having problems.

My project is here: github.com/tdox/hcholmod.  I can link an executable with the build script in the examples directory (line 4).  But line 7 does not work (I get undefineds for functions that are in cholmod.a. Also, I can't build example1 with cabal.  (Uncommenting the -- lines in hcholmod.cabal results is similar undefineds.)

I would appreciate any help or hints.

Thanks,

Tad