[CIG-LONG] CIG-LONG Digest, Vol 64, Issue 18

Walter Landry walter at geodynamics.org
Sun Mar 25 16:57:06 PDT 2012


Robert Gray <graywacke at gmail.com> wrote:
> Hey Walter,
> Invoking configure as you suggested definitely helped.
> However, the compilation process failed at some point.
> The script prior to the termination was:
> 
>  "_dgetrs_", referenced from:
>       _KSPDGMRESApplyDeflation_DGMRES in libpetsc.a(dgmres.c.o)
>       _MatMatSolve_SeqDense in libpetsc.a(dense.c.o)
>       _MatSolveTranspose_SeqDense in libpetsc.a(dense.c.o)
>       _MatSolve_SeqDense in libpetsc.a(dense.c.o)
>       _MatSolveTransposeAdd_SeqDense in libpetsc.a(dense.c.o)
>       _MatSolveAdd_SeqDense in libpetsc.a(dense.c.o)

That is a lapack library function.  To link against it on OS X, try
adding to linkflags either

  -framework vecLib

or

  -framework Accelerate

Cheers,
Walter Landry


More information about the CIG-LONG mailing list