[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Very basic question about Flex
From: |
Jannick |
Subject: |
RE: Very basic question about Flex |
Date: |
Fri, 22 Feb 2019 18:29:33 +0100 |
On Fri, 22 Feb 2019 17:02:57 +0100, address@hidden 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.