From: David E. <de...@us...> - 2007-05-17 23:39:52
|
Massimo Spataro wrote: > I have download and open tar file for start > porting of old source of cobol for micr*focus > compiler. But i have this problem on directory > /compiler > > tinycobol-0.63# make > Making all in compiler > make[1]: Entering directory ` ... /compiler' > gcc ... -c scan.c > scan.c:1076: error: expected â=â, â,â, â;â, âasmâ > or â__attribute__â before âYY_PROTOâ > scan.l:744: error: expected â=â, â,â, â;â, âasmâ > or â__attribute__â before âYY_PROTOâ > make[1]: *** [scan.o] Error 1 > ... > Have you think, where is problem ? I think that this problem may be caused by a macro 'define' problem with flex versions greater that 2.5.4. Specifically by the following macro 'define', as found in scan.l:61. #define YY_DECL int yylex2 YY_PROTO((void)) The following code will fix the problem for all version (I hope) of flex. #ifdef YY_USE_PROTOS #define YY_DECL int yylex2 YY_PROTO((void)) #else #define YY_PROTO(proto) (void) #define YY_DECL int yylex2(void) #endif Note that TC CVS version 0.63.63 or greater has this fix included. Hope this helps. David Essex |