Redeclaration of enumerator 'RETURN'
TheOrangeCat opened this issue · comments
When compiling this on Pop!_OS 19.04 GCC errors out on this:
gcc -c -DCROSS_COMPILE -DIN_GCC -g -O2 -DHAVE_CONFIG_H -I. -I../../../../prc-tools-2.3/gcc295/gcc -I../../../../prc-tools-2.3/gcc295/gcc/config -I../../../../prc-tools-2.3/gcc295/gcc/../include ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:31:
../../../../prc-tools-2.3/gcc295/gcc/c-parse.h:74:5: error: redeclaration of enumerator ‘RETURN’
RETURN = 280,
^~~~~~
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:24:
../../../../prc-tools-2.3/gcc295/gcc/rtl.def:503:14: note: previous definition of ‘RETURN’ was here
DEF_RTL_EXPR(RETURN, "return", "", 'x')
^~~~~~
../../../../prc-tools-2.3/gcc295/gcc/rtl.h:41:51: note: in definition of macro ‘DEF_RTL_EXPR’
#define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) ENUM ,
^~~~
../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:65: warning: "YYDEBUG" redefined
#define YYDEBUG 1
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:31:
../../../../prc-tools-2.3/gcc295/gcc/c-parse.h:41: note: this is the location of the previous definition
# define YYDEBUG 0
In file included from ../../../../prc-tools-2.3/gcc295/gcc/c-lex.c:133:
../../../../prc-tools-2.3/gcc295/gcc/c-gperf.h:192:21: warning: ‘wordlist’ is static but used in inline function ‘is_reserved_word’ which is not static
return &wordlist[key];
^~~~~~~~
../../../../prc-tools-2.3/gcc295/gcc/c-gperf.h:189:36: warning: ‘wordlist’ is static but used in inline function ‘is_reserved_word’ which is not static
register const char *s = wordlist[key].name;
^~~~~~~~
../../../../prc-tools-2.3/gcc295/gcc/c-gperf.h:185:26: warning: ‘hash’ is static but used in inline function ‘is_reserved_word’ which is not static
register int key = hash (str, len);
^~~~
There a newer version of gcc (9.1) for compiling Palm OS application. Have a look here, if you are still interested: https://palm2000.com/projects/compilingAndBuildingPalmOsAppsOnUbuntu2004LTS.php