[Haskell-cafe] Re: Linking hmatrix without LAPACK

Duane Johnson duane.johnson at gmail.com
Mon Apr 6 01:35:42 EDT 2009

On a related note, I've installed Atlas, and I get the following error  
when linking:

> Linking SilkwormGame ...
> ld: in /opt/local/lib/liblapack.a(), not a valid archive member
> collect2: ld returned 1 exit status

How would I go about diagnosing this?  I've never seen an ld error  
like that.

Thanks again!
Duane Johnson

On Apr 5, 2009, at 11:02 PM, Duane Johnson wrote:

> I'm curious if there is a quick fix to this.  I installed GLS and  
> hmatrix, and it runs wonderfully together in ghci.  When I run ghc -- 
> make, however, I run into the following link dependency:
> Linking SilkwormGame ...
> Undefined symbols:
>  "_dgemm_", referenced from:
>      _multiplyR in libHShmatrix-
>  "_dgesv_", referenced from:
>      _linearSolveR_l in libHShmatrix-
> 	... etc
> Is there a way to tell ghc to not link these?  Or am I making a poor  
> assumption that if my code runs in ghci, it does not need LAPACK?
> Thanks,
> Duane Johnson

More information about the Haskell-Cafe mailing list