|
From: David E. <de...@us...> - 2005-07-11 05:45:35
|
Alfred Cleve wrote: > i tried to compile the stable version of htcobol 0.62 within the actual > debian-sarge. The used gcc is > > gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) > > the result of make gives a result like that: > alfred@tux:/usr/local/src/tinycobol-0.62/compiler$ make > gcc -I/usr/include -I/usr/local/include -I../lib -I../ -c scan.c > scan.c:1060: error: Syntaxfehler before "YY_PROTO" > scan.l:120: error: Syntaxfehler before "switch" > scan.l:123: error: redefinition of `yy_start' > scan.c:272: error: `yy_start' previously defined here > scan.l:123: Warnung: data definition has no type or storage class > scan.l:124: error: Syntaxfehler before "break" > > Is anybody out there, who can give me a hint ? I think this a problem with GCC 3.3.x relating to the following 'define'. $grep -n YY_PROTO *.l scan.l:59:#define YY_DECL int yylex2 YY_PROTO((void)) scan.l:741:int yylex YY_PROTO((void)) I seams to work fine with versions prior to GCC 3.3 . No idea why this is a problem, nor how to fix it. Maybe some thing to do with the C99 standard again. |