[GRASS-dev] Re: winGRASS

Glynn Clements glynn at gclements.plus.com
Thu Dec 14 17:04:54 EST 2006


Markus Neteler wrote:

> > /c/grasssrc/grass6/raster/r.terraflow (grass2str.h:436: error: `getrusage'
> > undeclared (first use this function))
> 
> Does including
>        #include <sys/time.h>
>        #include <sys/resource.h>
> help? This is suggested by
>  man getrusage
> on my Linux box.

getrusage() is Unix-specific; it doesn't exist on Windows (MinGW).

It's only required so that r.terraflow can write out CPU usage
information to the stats file.

AFAICT, it should only be necessary to modify the file
IOStream/include/rtimer.h; everything else treats Rtimer as opaque and
relies upon the rt_* macros.

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




More information about the grass-dev mailing list