[GRASS5] howto: direct access to raster cells - skeletons in cvs?
Glynn Clements
glynn.clements at virgin.net
Wed Sep 29 22:33:56 EDT 2004
Stefan Paulick wrote:
> I want to perform the following task:
> 1) read a single cell in a raster map
> 2) modify its value
> 3) write it back and display the map
>
> When having a look at r.example using KDevelop, I received
> module = G_define_module();
> -> warning: assignment makes pointer from integer without a cast
> and
> module->description ="GRASS raster programming example.";
> -> error: dereferencing pointer to incomplete type
Those messages suggest that your GRASS headers are from an extremely
old version of GRASS 5. "struct GModule" and G_define_module were
added on 2000/11/21. GRASS 4.x didn't support FP, so you would have a
lot more errors if you were trying to use 4.x headers.
r.example compiles fine with a current version of GRASS.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list