I write simple flex program and run it in linux with following code
flex filename.l
cc lex.yy.c -lfl
./a.out
but now I want to run it in windows I do orders in following link now I am trying to compile flex file with following commend but it says that cc is not recognized then I try to compile it with following commend
gcc lex.yy.c -lfl
and it says that cannot find -lfl
, then I try this
gcc lex.yy.c
but i got a lot of error for example undefined reference to yywrap
. what should I do to recognize flex libraries ?