[GRASSLIST:4551] Re: compiling GRASS 5.7.0

Ulrich Leopold uleopold at science.uva.nl
Fri Oct 15 10:08:58 EDT 2004


On Thu, 2004-10-14 at 18:01, Glynn Clements wrote:
> Ulrich Leopold wrote:
> 
> > > Does the path which you specified with the --with-grass50= switch
> > > refer to a recent 5.3 snapshot? The definitions in lib/gis/null_val.c
> > > should have the following prototypes:
> > > 
> > > 	int G_is_null_value (const void *rast, RASTER_MAP_TYPE data_type)
> > > 	int G_is_c_null_value (const CELL *cellVal)
> > > 	int G_is_f_null_value (const FCELL *fcellVal)
> > > 	int G_is_d_null_value (const DCELL *dcellVal)
> > 
> > seems to be correct. I have version grass53_exp_2004_10_09.
> > But it is located in 'libes/gis/null_val.c' not 'lib/gis/...'
> > But I guess that is not the problem.
> 
> lib/gis/null_val.c should be a symlink to the 5.3 version.
> 
> If the definitions in null_val.c match the declarations in gisdefs.h,
> then I have no idea why the compiler would be generating a
> "conflicting types" error.

Ok, I think you are right. But where do I have to change in null_val.c?
I gues snot only these lines have to be changed:
int G_is_null_value (const void *rast, RASTER_MAP_TYPE data_type)
int G_is_c_null_value (const CELL *cellVal)
int G_is_f_null_value (const FCELL *fcellVal)
int G_is_d_null_value (const DCELL *dcellVal)

The "const" is missing in "null-val.c". Can I simply replace e.g. all
"CELL" by "const CELL" etc.?

Ulrich




More information about the grass-user mailing list