[GRASSLIST:2569] Re: [GRASS5] r.terraflow on MaxOSX

Christopher Fonnesbeck chris at fonnesbeck.org
Wed Feb 11 21:39:01 EST 2004


On Dec 16, 2003, at 10:20 PM, Laura Toma wrote:

> Hi,
> we managed to install grass on my imac and compiled r.terraflow with 
> only two changes.
> can somebody commit these changes to CVS.
> thanks,
> -laura
>

Did these changes get committed? I still have c++ troubles with 
r.terraflow on OSX. If you can think of a fix for this error, please 
let me know:

r.terraflow
Makefile:80: warning: overriding commands for target `htmlcmd'
../../include/Make/Rules.make:37: warning: ignoring old commands for 
target `htmlcmd'
Makefile:89: warning: overriding commands for target `clean'
../../include/Make/Rules.make:30: warning: ignoring old commands for 
target `clean'
mkdir -p OBJ.powerpc-apple-darwin7.2.0/FLOAT ; true
mkdir -p OBJ.powerpc-apple-darwin7.2.0/SHORT ; true
c++ -c -I./IOStream/include -DUSER=\"chris\" -DNODATA_FIX 
-D_FILE_OFFSET_BITS=64 -I/usr/local/src/grass57/include -DELEV_FLOAT 
main.cc -o OBJ.powerpc-apple-darwin7.2.0/FLOAT/main.o
main.cc:48: error: parse error before `<<' token
In file included from /usr/local/src/grass57/include/gis.h:32,
                  from main.cc:61:
/usr/local/src/grass57/include/datetime.h:24: error: parse error before 
`}'
    token
/usr/local/src/grass57/include/datetime.h:24: warning: ISO C++ forbids
    declaration of `DateTime' with no type
In file included from /usr/local/src/grass57/include/datetime.h:27,
                  from /usr/local/src/grass57/include/gis.h:32,
                  from main.cc:61:
/usr/local/src/grass57/include/P_datetime.h:12: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:12: error: parse error 
before `,'
    token
/usr/local/src/grass57/include/P_datetime.h:15: error: `src' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:15: error: `dst' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:15: error: variable or 
field `
    datetime_copy' declared void
/usr/local/src/grass57/include/P_datetime.h:15: warning: initializer 
list being
    treated as compound expression
/usr/local/src/grass57/include/P_datetime.h:18: error: `a' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:18: error: `b' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:18: error: `result' was not
    declared in this scope
/usr/local/src/grass57/include/P_datetime.h:18: warning: initializer 
list being
    treated as compound expression
/usr/local/src/grass57/include/P_datetime.h:27: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:27: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:30: error: `src' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:30: error: `incr' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:30: warning: initializer 
list being
    treated as compound expression
/usr/local/src/grass57/include/P_datetime.h:33: error: `src' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:33: error: `incr' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:33: warning: initializer 
list being
    treated as compound expression
/usr/local/src/grass57/include/P_datetime.h:34: error: `src' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:34: error: `incr' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:34: warning: initializer 
list being
    treated as compound expression
/usr/local/src/grass57/include/P_datetime.h:37: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:37: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:38: error: `src' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:38: error: `incr' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:38: warning: initializer 
list being
    treated as compound expression
/usr/local/src/grass57/include/P_datetime.h:42: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:42: error: variable or 
field `
    datetime_get_local_time' declared void
/usr/local/src/grass57/include/P_datetime.h:50: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:50: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:53: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:54: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:55: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:55: error: variable or 
field `
    datetime_set_positive' declared void
/usr/local/src/grass57/include/P_datetime.h:56: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:56: error: variable or 
field `
    datetime_set_negative' declared void
/usr/local/src/grass57/include/P_datetime.h:57: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:57: error: variable or 
field `
    datetime_invert_sign' declared void
/usr/local/src/grass57/include/P_datetime.h:60: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:60: error: parse error 
before `,'
    token
/usr/local/src/grass57/include/P_datetime.h:61: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:61: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:62: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:63: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:66: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:67: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:70: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:70: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:71: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:71: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:72: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:72: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:73: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:77: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:77: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:78: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:82: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:82: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:83: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:83: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:84: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:84: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:85: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:85: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:86: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:86: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:87: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:87: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:88: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:88: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:89: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:89: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:90: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:90: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:91: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:91: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:92: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:92: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:93: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:93: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:94: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:94: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:95: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:95: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:96: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:96: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:97: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:97: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:98: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:98: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:99: error: `dt' was not 
declared in
    this scope
/usr/local/src/grass57/include/P_datetime.h:99: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:100: error: `dt' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:100: error: parse error 
before `)'
    token
/usr/local/src/grass57/include/P_datetime.h:101: error: `dt' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:101: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/P_datetime.h:102: error: `dt' was not 
declared
    in this scope
/usr/local/src/grass57/include/P_datetime.h:102: error: parse error 
before `)'
    token
In file included from main.cc:61:
/usr/local/src/grass57/include/gis.h:453: error: parse error before `[' 
token
In file included from /usr/local/src/grass57/include/gis.h:461,
                  from main.cc:61:
/usr/local/src/grass57/include/gisdefs.h:1066: error: type specifier 
omitted
    for parameter `DateTime'
/usr/local/src/grass57/include/gisdefs.h:1066: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/gisdefs.h:1067: error: type specifier 
omitted
    for parameter `DateTime'
/usr/local/src/grass57/include/gisdefs.h:1067: error: parse error 
before `*'
    token
/usr/local/src/grass57/include/gisdefs.h:1070: error: type specifier 
omitted
    for parameter `DateTime'
/usr/local/src/grass57/include/gisdefs.h:1070: error: parse error 
before `*'
    token
main.cc:62: error: parse error before `}' token
main.cc: In function `void printMaxSortSize(long int)':
main.cc:453: error: parse error before `>>' token
make[2]: *** [OBJ.powerpc-apple-darwin7.2.0/FLOAT/main.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Regards,
Chris Fonnesbeck

--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia




More information about the grass-user mailing list