[GRASS-dev] d.graph compilation
Glynn Clements
glynn at gclements.plus.com
Tue Aug 26 13:51:29 EDT 2008
Yann Chemin wrote:
> d.graph is bugging on compilation:
>
> root at siduxbox:/home/yann/tmp/grass/display/d.graph# make
> test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu
> gcc -I/home/yann/tmp/grass/dist.x86_64-unknown-linux-gnu/include -g
> -O2 -DPACKAGE=\""grassmods"\"
> -I/home/yann/tmp/grass/dist.x86_64-unknown-linux-gnu/include -o
> OBJ.x86_64-unknown-linux-gnu/do_graph.o -c do_graph.c
> do_graph.c:25: error: static declaration of 't' follows non-static declaration
> options.h:4: error: previous declaration of 't' was here
Fixed in SVN, with:
--- display/d.graph/options.h (revision 33095)
+++ display/d.graph/options.h (working copy)
@@ -1,6 +1,5 @@
extern float hsize;
extern float vsize;
-extern double t, b, l, r;
extern int mapunits;
extern FILE *infile;
It compiled without warnings for me; probably a difference between gcc
3.4.x and 4.x.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list