[GRASSLIST:948] Re: LAPACK/BLAS math interface ????

Glynn Clements glynn.clements at virgin.net
Wed Aug 13 11:19:16 EDT 2003


Cannata, Massimiliano wrote:

> i try to compile my new command but i get some errors 
> regarding the LAPACK/BLAS numerical math interface.
> Can someone help me?
> 
> Here is my Gmakefile:
> 
> PGM=r.temperature.rst
> LIBES = $(GMATHLIB) $(GISLIB) $(BLASLIB) $(LAPACKLIB) 
> $(VECTLIB) $(DATETIMELIB) -lblas -llapack -lg2c

You don't need the "-lblas -llapack -lg2c"; that's what $(BLASLIB)
and $(LAPACKLIB) are for.

> DEEPLIBS = $(DEPGISLIB) $(DEPVECTLIB) $(DEPDIG_ATTLIB) 
> $(DEPDATETIMELIB)
> 
> LIST = main.o calculus.o
> 
> $(HOME)/$(PGM): $(LIST) $(DEPLIBS)
> 	$(CC) $(LDFLAGS) -o $@ $(LIST) $(LIBES) $(MATHLIB) 
> $(XDRLIB)
> 
> $(DEPGISLIB): #
> 
> when i compile i get this sort of message:
> 
> OBJ.i686-pc-linux-gnu/main.o(.text+0x3c4):/home/mcannata/tmp/grass5.0.2/src/ModelloIST/temperatura/main.c:165: 
> undefined reference to `G_matrix_set_element'

You need to use "configure --with-blas --with-lapack ...", otherwise
those functions will be missing from libgmath.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list