The following lines should be added to the top of cfg.lex to remove the yyunput message. /* Don't emit a yyunput function in the generated scanner. */ %option nounput Regards, Norm