[GRASS-dev] g.mapsets use of sleep()
Hamish
hamish_nospam at yahoo.com
Tue Dec 5 21:14:06 EST 2006
Glynn Clements wrote:
> > OBJ.i686-pc-mingw32/main_cmd.o(.text+0x427): In function `main':
> > c:/grass/grass6/general/g.mapsets/main_cmd.c:128: undefined reference to `sleep'
> >
> > collect2: ld returned 1 exit status
> > make: *** [/c/grass/grass6/dist.i686-pc-mingw32/bin/g.mapsets.exe] Error 1
> >
> > Not at all sure what's the most elegant way of fixing it???
The sleep() is not needed here so I've removed them in CVS.
Still to be done- get rid of hardcoded `ls`:
the module already has two fns,
get_available_mapsets();
display_available_mapsets(0);
so use them instead of UNIXy `ls`. display_available_mapsets() would need
to be passed a new option for target: display_available_mapsets(0, stderr);
Hamish
More information about the grass-dev
mailing list