[GRASS5] rst updates

Markus Neteler neteler at itc.it
Tue Dec 14 15:02:50 EST 2004


On Tue, Dec 14, 2004 at 08:08:44PM +0100, Jaro Hofierka wrote:
> 
> >
> >to make it compile, I have applied the following change in CVS:
> >
> >RCS file: /grassrepository/grass51/lib/rst/interp_float/interpf.h,v
> >retrieving revision 1.5
> >diff -u -r1.5 interpf.h
> >--- interpf.h   14 Dec 2004 04:06:07 -0000      1.5
> >+++ interpf.h   14 Dec 2004 08:54:17 -0000
> >@@ -16,13 +16,13 @@
> >       double smooth;
> > };
> >
> >-  struct line_pnts *Pnts;
> >-  struct line_cats *Cats2;
> >-  dbDriver *driver2;
> >-  dbString sql2;
> >-  struct Map_info Map2;
> >-  struct field_info *ff;
> >-  int count;
> >+extern struct line_pnts *Pnts;
> >+extern struct line_cats *Cats2;
> >+extern dbDriver *driver2;
> >+extern dbString sql2;
> >+extern struct Map_info Map2;
> >+extern struct field_info *ff;
> >+extern int count;
> >
> >
> >Not sure if it's right but now it compiles.
> 
> Markus,
> 
> this is not working on my machine and I'm getting a compile error.
> Maybe I missed something else, I'll try to fix it.

Jaro,

probably the
#define MAIN
etc games have to be played? Mhhh.

However, the current CVS compiles on RHEL 3 and Mandrake 10.0 for me.
 
> >My suggestion is to use the following CFLAGS to catch such
> >problems:
> >
> >export CFLAGS='-g -Wall -Werror-implicit-function-declaration -fno-common'

In general these flags are useful to find errors.
Side effect: It seems to somewhat behave like MacOSX then and uncovers
potential errors (sort of test emulation).

Maybe my fix was oversimplified, but some modification is needed.

> >configure ...
> >make

Markus




More information about the grass-dev mailing list