[GRASS-dev] Compiling r.example in LINUX
Glynn Clements
glynn at gclements.plus.com
Mon Jan 25 13:47:04 EST 2010
António Rocha wrote:
> I'm having a few difficulties in compiling modules (e.g. r.example).
> *make -C r.example MODULE_TOPDIR=/usr/local/grass-6.4.0svn/*
> /home/anrr/Desktop/GRASS_dvp/r.example/main.c:108: undefined reference to `Rast_map_type'
You're trying to compile an example written for 7.0 against 6.4.
A lot has changed between 7.0 and 6.x. E.g. all of the raster-specific
functions have been removed from lib/gis and moved to lib/raster, and
renamed from G_* to Rast_*.
The r.example source code is included in the GRASS source tree, in
doc/raster/r.example. The version in the 6.4 source tree should
compile against 6.4.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list