[GRASS5] [bug #3746] (grass) d.grid compilation error

Looks like d.grid has been changed so it uses PROJ but the Makefile not
totally updated accordingly. Could you try adding the line
EXTRA_INC = $(PROJINC)
to display/d.grid/Makefile and see if that makes any difference?

Paul

/wall/grass-6.1.cvs_src_snapshot_2005_10_15/include/gprojects.h:67: error: syntax error before '*' token /wall/grass-6.1.cvs_src_snapshot_2005_10_15/include/gprojects.h:68: warning: data definition has no type or storage class /wall/grass-6.1.cvs_src_snapshot_2005_10_15/include/gprojects.h:72: error: syntax error before "OGRSpatialReferenceH"

Looks like d.grid has been changed so it uses PROJ but the Makefile
not totally updated accordingly. Could you try adding the line
EXTRA_INC = $(PROJINC)
to display/d.grid/Makefile and see if that makes any difference?

Paul
> /wall/grass-6.1.cvs_src_snapshot_2005_10_15/include/gprojects.h:67:
> error: syntax error before '*' token
> /wall/grass-6.1.cvs_src_snapshot_2005_10_15/include/gprojects.h:68:
> warning: data definition has no type or storage class
> /wall/grass-6.1.cvs_src_snapshot_2005_10_15/include/gprojects.h:72:
> error: syntax error before "OGRSpatialReferenceH"

I tried compiling d.grid yesterday with an older version of gcc and got
a different error. (all sorts of undefined pj_ functions). Adding
$(GPROJLIB) to the LIBES line fixed that. d.where's Makefile uses the
following:

LIBES = $(DISPLAYLIB) $(RASTERLIB) $(GPROJLIB) $(GISLIB)
DEPENDENCIES= $(DISPLAYDEP) $(RASTERDEP) $(GPROJDEP) $(GISDEP)
EXTRA_INC = $(PROJINC)

should the PROJ references be added to all three of these lines in the
d.grid Makefile, as a set?

Hamish

I tried compiling d.grid yesterday with an older version of gcc and got
a different error. (all sorts of undefined pj_ functions). Adding
$(GPROJLIB) to the LIBES line fixed that.

nevermind, mixed up at my end.

EXTRA_INC = $(PROJINC)

added in cvs.

Hamish