Subject: Re: [ublas] problem building cxsparse with ublas (ublas_csparse.hpp)
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2009-01-22 15:06:25
Am Donnerstag, 8. Januar 2009 11:08 schrieb Dave Anonym:
> I have problems using ublas together with cxsparse. For this
> I use the interface ublas_csparse.hpp from Gunter Winkler
> (http://www.guwi17.de/ublas/index.html). But it fails to build
> because of unresolved externals:
> error LNK2001: unresolved external symbol _cs_dl_lu
> these functions are declared in cs.h but aren't defined anywhere
> within cxsparse. The functions are invoked in ublas_csparse.hpp so
> when I dont use that header cxsparse builds fine. Can anybody give me
> a hint where the problem may be?
> I am trying to build it under windows using Microsoft Visual C++ 8.0
> (NCOMPLEX defined).
I can't help with the windows compiler. However the makefile of cxsparse
generates a static library which contains all required functions for
float, double, complex<float> and complex<double>. Maybe you have to
build a dll or static library first.