This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Fun with flex
Christopher Faylor wrote:
> Does it work any better if you get rid of the '-l'?
>
> cgf
Every other platform that uses flex uses the '-l'. I thought about
removing it too... the results are below (it didn't work).
Harold
harold@huntharo ~/x-devel/4.3/build/std/config/pswrap
$ flex -t lexer.l > lexer.c
lexer.l:189: warning, rule cannot be matched
harold@huntharo ~/x-devel/4.3/build/std/config/pswrap
$ make
gcc -O2 -fno-strength-reduce -Wall -Wpointer-arith -I../..
-I../../exports/i
nclude -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_X86_
-D__CYGWIN__ -D_XOP
EN_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -
DNO_ALLOCA -DFUNCPROTO=15 -DNARROWPROTO -DXENVIRONMENT -c -o
lexer.o lexer
.c
lexer.l:50: redefinition of `yylineno'
<stdout>:334: `yylineno' previously defined here
make: *** [lexer.o] Error 1