[GRASSLIST:2292] Re: example plot_raster_map aus progmangrass (p.264)

Glynn Clements glynn.clements at virgin.net
Tue Jan 20 05:56:19 EST 2004


Daniel Isenegger wrote:

> I tried to implement the example plot_raster_map aus progmangrass 
> (p.264) to get used to the C-programming in GRASS.
> I use a source code installation of grass 5.0.3 on a linux Suse 8.2
> 
> After several iteration of the Gmakefile and the plot_raster_map I 
> allways get a hell of an error stack which starts with:

> /data/gis/nfp48/nfp48/ipodlas0.1/grass/grass5sources/grass-5.0.3/src/libes/LIB.i686-pc-linux-gnu/libgis.a(color_range.o)(.text+0xc2): 
> In function `G_get_color_range':
> /data/gis/nfp48/nfp48/ipodlas0.1/grass/grass5sources/grass-5.0.3/src/libes/gis/color_range.c:46: 
> undefined reference to `floor'/

> # einbinden der libs: e.g. D_ are in DISPLAYLIB
> LIBES= $(GISLIB) $(RASTERLIB) $(DISPLAYLIB) $(IMAGERYLIB) $(VASKLIB) $(VASK)

You need to add $(MATHLIB) to this line.

To be on the safe side, use of $(GISLIB) should always be followed by:

	$(DATETIMELIB) $(XDRLIB) $(MATHLIB)

as various parts of it may depend upon one or more of those libraries.

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




More information about the grass-user mailing list