[GRASS-dev] error in r.univar2?

I had a problem while I was compiling from develbranch6:

r.univar_main.c: In function ‘set_params’:
r.univar_main.c:37: error: ‘s’ undeclared (first use in this function)
r.univar_main.c:37: error: (Each undeclared identifier is reported only once
r.univar_main.c:37: error: for each function it appears in.)
r.univar_main.c:38: error: expected ‘;’ before ‘param’
make[2]: *** [OBJ.i686-pc-linux-gnu/r.univar_main.o] Error 1

Looking at r.univar_main.c I see this at row 37:

param.percentile->options = “0-100”;s

Is the “s” corrected??? It is the cause of the compilation failure…

Giovanni

Hi,

2008/12/17 G. Allegri <giohappy@gmail.com>:

I had a problem while I was compiling from develbranch6:

r.univar_main.c: In function 'set_params':
r.univar_main.c:37: error: 's' undeclared (first use in this function)
r.univar_main.c:37: error: (Each undeclared identifier is reported only once
r.univar_main.c:37: error: for each function it appears in.)
r.univar_main.c:38: error: expected ';' before 'param'
make[2]: *** [OBJ.i686-pc-linux-gnu/r.univar_main.o] Error 1

Looking at r.univar_main.c I see this at row 37:

param.percentile->options = "0-100";s

Is the "s" corrected??? It is the cause of the compilation failure...

no, it's typo. Are you sure that you are not working with locally
modified copy of the file?

svn revert r.univar_main.c
make

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Sorry, I was going to answer. It was a typo in my version… don’t know why but svn update has made it!

thx anyway

2008/12/17 Martin Landa <landa.martin@gmail.com>

Hi,

2008/12/17 G. Allegri <giohappy@gmail.com>:

I had a problem while I was compiling from develbranch6:

r.univar_main.c: In function ‘set_params’:
r.univar_main.c:37: error: ‘s’ undeclared (first use in this function)
r.univar_main.c:37: error: (Each undeclared identifier is reported only once
r.univar_main.c:37: error: for each function it appears in.)
r.univar_main.c:38: error: expected ‘;’ before ‘param’
make[2]: *** [OBJ.i686-pc-linux-gnu/r.univar_main.o] Error 1

Looking at r.univar_main.c I see this at row 37:

param.percentile->options = “0-100”;s

Is the “s” corrected??? It is the cause of the compilation failure…

no, it’s typo. Are you sure that you are not working with locally
modified copy of the file?

svn revert r.univar_main.c
make

Martin


Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *