I get an error about undefined yywrap(). ======================================== You must supply a 'yywrap()' function of your own, or link to 'libfl.a' (which provides one), or use %option noyywrap in your source to say you don't want a 'yywrap()' function.