Package: flex
Version: 2.5.37

Maintainer: Manoj Srivastava <[email protected]>
Description: Multiple errors in generated C++ file

Compiling with the cygwin g++ compiler multiples errors are generated when 
%option C++ is specified but not when %option C++ is not specified.  Same 
compiler, same input code, different lex options, different results.

I can ship the input file to you if you want. It has 342 lines and is 20Kb in 
size. It contains skeleton code and should be rather simple to use.

art
[email protected]


Compiler Command

C:\cygwin64\bin\make.exe -f nbproject/Makefile-Debug.mk 
build/Debug/Cygwin-Windows/lex.Slip.o
mkdir -p build/Debug/Cygwin-Windows
rm -f build/Debug/Cygwin-Windows/lex.Slip.o.d
g++    -c -g -MMD -MP -MF build/Debug/Cygwin-Windows/lex.Slip.o.d -o 
build/Debug/Cygwin-Windows/lex.Slip.o lex.Slip.cpp

Some Errors:
--- code ---
case 1:
YY_RULE_SETUP
{ printf("%3d:%4d ,                  %s\n", lineno, col, yytext); col++; }
    YY_BREAK
--- error ---
lex.Slip.cc:840:64: error: invalid use of member function (did you forget the 
‘()’ ?)

--- code ---
case 21:
/* rule 21 can match eol */
YY_RULE_SETUP
{ printf("%3d:%4d \\n\n", lineno, col); lineno++; col=1; }
    YY_BREAK

--- error ---
lex.Slip.cc:931:47: error: no post-increment operator for type


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to