[GRASSLIST:2533] Re: creating a GRASS function outside of GRASS source code

Glynn Clements glynn.clements at virgin.net
Mon Feb 9 21:50:44 EST 2004


Christopher Fonnesbeck wrote:

> I am trying to build a GRASS function that may be called from python, 
> using the weave package. As such, it resides outside of the GRASS 
> source code. I am wondering what needs to be done to ensure proper 
> compilation in this situation. I have set the following environment 
> variables:
> 
> GISBASE=/usr/local/grass57
> GISRC=$HOME/.grassrc57
> PATH=$PATH:$GISBASE/bin:$GISBASE/scripts
> 
> and have used includes and libs $GISBASE/include and $GISBASE/lib, 
> respectively. Nevertheless, I get the following error upon compilation:
> 
> ld: Undefined symbols:
> Vect_new_list()
> 
> What am I missing? I have included both gis.h and Vect.h in the C code.

You have to link against the vector libraries. I don't know exactly
which libraries you need; look at the definition of VECTLIB in
include/Make/Grass.make.in.

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




More information about the grass-user mailing list