[GRASS-dev] question about error in r.watershed

Glynn Clements glynn at gclements.plus.com
Sat Dec 20 23:06:10 EST 2008


Michael Barton wrote:

> > The fix would be to add the following lines in front/main.c at line  
> > 223
> >
> >   /* LS factor and basin.thresh */
> >   err += (opt14->answer != NULL && opt6->answer == NULL);

> I applied your patch and got the following compiler error:
> 
> r.watershed/front >> /Users/cmbarton/grass_dev/grass6_src/error.log
> gcc -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.6.0/ 
> include  -arch i386 -Os       -DPACKAGE=\""grassmods"\"  -I/Users/ 
> cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.6.0/include -o  
> OBJ.i386-apple-darwin9.6.0/main.o -c main.c
> main.c: In function �main�:
> main.c:224: error: stray �\202� in program
> main.c:224: error: stray �\202� in program

Presumably, that's in the line you added.

I suspect an error in the copy/paste from the email. I've attached
Markus' suggested change as a binary attachment.

-- 
Glynn Clements <glynn at gclements.plus.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: r.watershed.patch
Type: application/octet-stream
Size: 587 bytes
Desc: r.watershed patch
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20081221/0274ef19/r.watershed.obj


More information about the grass-dev mailing list