When I try to build a CVS snapshot from today
(2003.10.18), I get the following error:
make[1]: Entering directory
`/tmp/sdcc/sdcc-2.3.5+cvs20031017/support/makebin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/tmp/sdcc/sdcc-2.3.5+cvs20031017/support/makebin'
make -C src
make[1]: Entering directory
`/tmp/sdcc/sdcc-2.3.5+cvs20031017/src'
i386-linux-gcc -Wall -pipe -ggdb -g -O2 -I. -I..
-I../support/Util -c SDCClex.c -o SDCClex.o
SDCC.lex: In function `stringLiteral':
SDCC.lex:357: error: `yytext_ptr' undeclared (first use
in this function)
SDCC.lex:357: error: (Each undeclared identifier is
reported only once
SDCC.lex:357: error: for each function it appears in.)
make[1]: *** [SDCClex.o] Error 1
make[1]: Leaving directory
`/tmp/sdcc/sdcc-2.3.5+cvs20031017/src'
make: *** [sdcc-cc] Error 2
The last version I built before that one was from
2003.10.02 and was built without problem.
Logged In: YES
user_id=568035
It works with flex 2.5.4, so please do the upgrade.
I'm still investigating why it doesn't work with 2.5.31.
Unfortunately I don't have that version of flex.
Can you please send me SDCClex.c file, generated by:
flex -t SDCC.lex >SDCClex.c
so that I can take a look to it?
Logged In: YES
user_id=475561
As far as I know, flex 2.5.31 is newer than flex 2.5.4.
Moreover flex 2.5.31 is the latest available version.
Please find attached SDCClex.c
Aurelien
SDCClex.c
Logged In: YES
user_id=568035
The last flex vesrion, available from FSF
http://www.gnu.org/software/flex/ is 2.5.4.
The latest flex version is indeed 2.5.31 (thank you, Aurelien),
and can be found at http://lex.sourceforge.net/.
Flex 2.5.31 undefines yytext_ptr, so we have to define it
again.
Fixed in src/SDCC.lex 1.51
Aurelien, thank you again for your help.