RE: Very basic question about Flex

"Jannick" <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
On Fri, 22 Feb 2019 17:02:57 +0100, [email protected] wrote:

> $gcc lex.yy.c -o test -Wall

Comparing to your earlier compile statement, you dropped '-lfl' which caused the linking error.  To remedy the situation add to the top of the flex file

%option noyywrap
%option noinput nounput

Then the errors should go away. The first option makes linking against the flex library obsolete.

Enjoy flex.

HTH
J.


_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.