[GRASSLIST:947] LAPACK/BLAS math interface ????
Cannata, Massimiliano
massimiliano.cannata at supsi.ch
Wed Aug 13 10:23:48 EDT 2003
Hi all,
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
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'
and my include in my C file:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gmath.h"
#include "la.h"
#include "gis.h"
#include "site.h"
#include "local_proto.h"
int main(int argc, char *argv[])
{
.......
math_struct *A;
A=G_matrix_init(3,3,3);
Thanks you all!
--------------------------------------
Eng. Massimiliano Cannata
Phd student
www.supsi.ch
More information about the grass-user
mailing list