[Haskell-cafe] Haskell on Debian - gcc compilation problem with cabal installed libs like hmatrix, etc.

Henk-Jan van Tuyl hjgtuyl at chello.nl
Mon Dec 20 01:07:50 CET 2010

On Sun, 19 Dec 2010 21:32:00 +0100, gutti <philipp.guttenberg at gmx.net>  

> Try
> to use the hmatrix package for vector and matrix calculations.
> The haskell compilation works (no problem in GHCi mode), the gcc however
> compilation fails with messages like:
> EFA.o: In function `r1bo_info':
> (.text+0x48): undefined reference to
> `hmatrixzm0zi10zi0zi0_NumericziVector_zdfNumVector1_closure'
> EFA.o: In function `r1bs_info':
> (.text+0x10a): undefined reference to
> `hmatrixzm0zi10zi0zi0_NumericziVector_zdfFractionalVector_closure'
> Obviously gcc doesn't know where the according libraries are installed.  
> Same problem with other packages.

The description of the package states: "internally implemented using GSL,  
BLAS and LAPACK"; I suppose you need to install these (non-Haskell)  
packages first.

Henk-Jan van Tuyl


More information about the Haskell-Cafe mailing list