Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 1996 10:47:33 -0800
From:      DARREND@novell.com (Darren Davis)
To:        DARREND@novell.com, leisner@sdsp.mc.xerox.com
Cc:        hackers@freebsd.org, narvi@haldjas.folklore.ee, terry@lambert.org
Subject:   Re: Flex - Reply  - Reply
Message-ID:  <s15bc5b4.010@fromGW>

next in thread | raw e-mail | index | archive | help


>>> Marty Leisner <leisner@sdsp.mc.xerox.com>  3/29 11:32am >>>
Which flex is it?  Did you try flex -l?

If you can get a newer flex, try it...

marty


Yes, I allready tried the -l option with about the same effect.
bash$ lex -V
lex version 2.4.7
bash$ 

bash$ make
lex -l -n -t ./scanner.l >scanner.c
cc -c -O -DBSD -ansi -w  scanner.c
./scanner.l: In function `yylex':
./scanner.l:113: `yysptr' undeclared (first use this function)
./scanner.l:113: (Each undeclared identifier is reported only once
./scanner.l:113: for each function it appears in.)
./scanner.l:400: `yytchar' undeclared (first use this function)
./scanner.l:400: `yysbuf' undeclared (first use this function)
./scanner.l: At top level:
./scanner.l:932: parse error before `='
./scanner.l:937: conflicting types for `yy_c_buf_p'
scanner.c:203: previous declaration of `yy_c_buf_p'
./scanner.l:937: initializer element is not constant
./scanner.l:939: parse error before `if'
./scanner.l:965: conflicting types for `yyrestart'
scanner.c:213: previous declaration of `yyrestart'
./scanner.l:969: parse error before `return'
./scanner.l:989: initializer element is not constant
./scanner.l:990: redefinition of `yy_c_buf_p'
./scanner.l:937: `yy_c_buf_p' previously defined here
./scanner.l:991: conflicting types for `yy_hold_char'
scanner.c:195: previous declaration of `yy_hold_char'
./scanner.l:991: initializer element is not constant
./scanner.l:993: parse error before `return'
./scanner.l:1003: conflicting types for `yyrestart'
./scanner.l:965: previous declaration of `yyrestart'
./scanner.l: In function `multicharconstant':
./scanner.l:674: `yytchar' undeclared (first use this function)
./scanner.l:674: `yysptr' undeclared (first use this function)
./scanner.l:674: `yysbuf' undeclared (first use this function)
*** Error code 1


I do not get a single error while compiling this under UnixWare 2.1 (no
surprise.)

Darren R. Davis
Senior Software Engineer
Novell, Inc.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?s15bc5b4.010>