On Sun, 19 Aug 2007, Maciej Sieczka wrote:
Gerald Nelson wrote:
I was reading up on r.watershed in the grass-6.3.cvs wingrass
version that was released in early August. The See Also section has
a link to r.terrflow.html but it doesn't work. I searched in the
grass directory and all subdirectories without success.
This propably means that winGRASS package was not build with C++
support, required by r.terraflow which is a (only one?) GRASS module
Good guess, but the answer is actually that r.terraflow does not build on
MinGW. Output from make attached in case anybody would like to try and fix
it (not me!).
Paul
written in C++. The man page will be created only if the relevant
module is built.
If you only want to read about r.terraflow, there is an online manual
for all GRASS modules on [1]. If you need r.terraflow for your work,
you'd need to build GRASS --with-cxx.
[1]http://grass.itc.it/grass63/manuals/html63_user/index.html
Maciek
_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev
Makefile:78: warning: overriding commands for target `clean'
../../include/Make/Rules.make:34: warning: ignoring old commands for target
`clean'
mkdir -p OBJ.i686-pc-mingw32/FLOAT ; true
mkdir -p OBJ.i686-pc-mingw32/SHORT ; true
c++ -c -I/c/grass/grass6/dist.i686-pc-mingw32/include -I/c/grass/extra/include
-g -O2 -I/c/grass/extra/include -I./IOStream/include -DUSER=\"\" -DNODATA_FIX
-D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -DELEV_FLOAT main.cc -o
OBJ.i686-pc-mingw32/FLOAT/main.o
In file included from ./IOStream/include/ami.h:49,
from common.h:49,
from main.cc:60:
./IOStream/include/ami_stream.h: In member function `unsigned int
AMI_STREAM<T>::get_block_length()':
./IOStream/include/ami_stream.h:191: error: there are no arguments to
`getpagesize' that depend on a template parameter, so a declaration of
`getpagesize' must be available
./IOStream/include/ami_stream.h:191: error: (if you use `-fpermissive', G++
will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ./IOStream/include/ami_sort_impl.h:48,
from ./IOStream/include/ami_sort.h:45,
from ./IOStream/include/ami.h:55,
from common.h:49,
from main.cc:60:
./IOStream/include/quicksort.h: In function `void partition(T*, size_t,
size_t&, CMPR&)':
./IOStream/include/quicksort.h:66: error: there are no arguments to `random'
that depend on a template parameter, so a declaration of `random' must be
available
In file included from ./IOStream/include/ami_sort.h:45,
from ./IOStream/include/ami.h:55,
from common.h:49,
from main.cc:60:
./IOStream/include/ami_sort_impl.h: In function `AMI_STREAM<T>*
singleMerge(queue<char*>*, Compare*)':
./IOStream/include/ami_sort_impl.h:300: error: there are no arguments to
`getpagesize' that depend on a template parameter, so a declaration of
`getpagesize' must be available
In file included from ./IOStream/include/ami.h:66,
from common.h:49,
from main.cc:60:
./IOStream/include/rtimer.h:48:26: sys/resource.h: No such file or directory
In file included from ./IOStream/include/ami.h:66,
from common.h:49,
from main.cc:60:
./IOStream/include/rtimer.h: At global scope:
./IOStream/include/rtimer.h:54: error: field `rut1' has incomplete type
./IOStream/include/rtimer.h:54: error: field `rut2' has incomplete type
In file included from main.cc:64:
grass2str.h: In function `AMI_STREAM<T>* cell2stream(char*, elevation_type,
long int*)':
grass2str.h:65: error: `RUSAGE_SELF' undeclared (first use this function)
grass2str.h:65: error: (Each undeclared identifier is reported only once for
each function it appears in.)
grass2str.h:65: error: 'struct Rtimer' has no member named 'rut1'
grass2str.h:65: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h:167: error: 'struct Rtimer' has no member named 'rut2'
grass2str.h:167: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, dimension_type,
dimension_type, char*, bool)':
grass2str.h:186: error: `RUSAGE_SELF' undeclared (first use this function)
grass2str.h:186: error: 'struct Rtimer' has no member named 'rut1'
grass2str.h:186: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h:246: error: 'struct Rtimer' has no member named 'rut2'
grass2str.h:246: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, dimension_type,
dimension_type, FUN, char*)':
grass2str.h:273: error: `RUSAGE_SELF' undeclared (first use this function)
grass2str.h:273: error: 'struct Rtimer' has no member named 'rut1'
grass2str.h:273: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h:325: error: 'struct Rtimer' has no member named 'rut2'
grass2str.h:325: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h: In function `void stream2_FCELL(AMI_STREAM<T>*, dimension_type,
dimension_type, FUN, char*)':
grass2str.h:347: error: `RUSAGE_SELF' undeclared (first use this function)
grass2str.h:347: error: 'struct Rtimer' has no member named 'rut1'
grass2str.h:347: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h:399: error: 'struct Rtimer' has no member named 'rut2'
grass2str.h:399: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h: In function `void stream2_FCELL(AMI_STREAM<T>*, dimension_type,
dimension_type, FUN1, FUN2, char*, char*)':
grass2str.h:436: error: `RUSAGE_SELF' undeclared (first use this function)
grass2str.h:436: error: 'struct Rtimer' has no member named 'rut1'
grass2str.h:436: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
grass2str.h:514: error: 'struct Rtimer' has no member named 'rut2'
grass2str.h:514: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
In file included from main.cc:66:
sortutils.h: In function `void sort(AMI_STREAM<T>**, FUN)':
sortutils.h:63: error: `RUSAGE_SELF' undeclared (first use this function)
sortutils.h:63: error: 'struct Rtimer' has no member named 'rut1'
sortutils.h:63: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
sortutils.h:68: error: 'struct Rtimer' has no member named 'rut2'
sortutils.h:68: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
sortutils.h: In function `AMI_STREAM<T>* sort(AMI_STREAM<T>*, FUN)':
sortutils.h:92: error: `RUSAGE_SELF' undeclared (first use this function)
sortutils.h:92: error: 'struct Rtimer' has no member named 'rut1'
sortutils.h:92: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
sortutils.h:97: error: 'struct Rtimer' has no member named 'rut2'
sortutils.h:97: error: there are no arguments to `getrusage' that depend on a
template parameter, so a declaration of `getrusage' must be available
main.cc: In function `void record_args(int, char**)':
main.cc:349: error: `ctime_r' undeclared (first use this function)
main.cc: In function `int main(int, char**)':
main.cc:582: error: `RUSAGE_SELF' undeclared (first use this function)
main.cc:582: error: 'struct Rtimer' has no member named 'rut1'
main.cc:582: error: `getrusage' undeclared (first use this function)
main.cc:646: error: 'struct Rtimer' has no member named 'rut2'
grass2str.h: In function `AMI_STREAM<T>* cell2stream(char*, elevation_type,
long int*) [with T = elevation_type]':
main.cc:589: instantiated from here
grass2str.h:65: error: `getrusage' undeclared (first use this function)
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, dimension_type,
dimension_type, char*, bool) [with T = direction_type]':
main.cc:606: instantiated from here
grass2str.h:186: error: `getrusage' undeclared (first use this function)
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, dimension_type,
dimension_type, char*, bool) [with T = elevation_type]':
main.cc:611: instantiated from here
grass2str.h:186: error: `getrusage' undeclared (first use this function)
grass2str.h: In function `void stream2_CELL(AMI_STREAM<T>*, dimension_type,
dimension_type, FUN, char*) [with T = labelElevType, FUN =
labelElevTypePrintLabel]':
main.cc:616: instantiated from here
grass2str.h:273: error: `getrusage' undeclared (first use this function)
grass2str.h: In function `void stream2_FCELL(AMI_STREAM<T>*, dimension_type,
dimension_type, FUN1, FUN2, char*, char*) [with T = sweepOutput, FUN1 =
printAccumulation, FUN2 = printTci]':
main.cc:637: instantiated from here
grass2str.h:436: error: `getrusage' undeclared (first use this function)
make: *** [OBJ.i686-pc-mingw32/FLOAT/main.o] Error 1
_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev