title: mingw32/bin/ld.exe: cannot find -lfl collect2.exe: error: ld returned 1 exit status
body: <p>I am trying to execute <code>FLEX</code> program from the <a href="https://github.com/jayant141191/Compiler_Design_Project" rel="nofollow noreferrer">Github</a> on windows and I have installed <code>Flex</code> and <code>MingW</code> Compiler.</p>
  
  <p>I have added below paths to Environmental variables</p>
  
  <ol>
  <li>C:\MinGW\bin</li>
  <li>C:\MinGW\msys\1.0\bin</li>
  </ol>
  
  <p>After that, I trying to execute <code>make</code> command and I got the below output</p>
  
  <pre><code>g++ -g -Wall -ansi -pedantic -std=gnu++0x bison.o lex.o main.o -o mini_lang -lfl
  c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lfl
  collect2.exe: error: ld returned 1 exit status
  make: *** [mini_lang] Error 1
  </code></pre>
  
  <p>Below is <code>Makefile</code></p>
  
  <pre><code>OBJ = bison.o lex.o main.o
  CC = g++
  CFLAGS = -g -Wall -ansi -pedantic -std=gnu++0x
  
  mini_lang:$(OBJ)
      $(CC) $(CFLAGS) $(OBJ) -o mini_lang -lfl
  
  lex.o: lex.c
      $(CC) $(CFLAGS) -c lex.c -o lex.o
  
  lex.c: lex_final.l
      flex lex_final.l
      cp lex.yy.c lex.c
  
  bison.o: bison.c
      $(CC) $(CFLAGS) -c bison.c -o bison.o
  
  bison.c: grammar.y
      bison -d -v grammar.y
      cp grammar.tab.c bison.c
      cmp -s grammar.tab.h tok.h || cp grammar.tab.h tok.h
  
  main.o: main.cc
      $(CC) $(CFLAGS) -c main.cc -o main.o
  
  lex.o yac.o main.o: headers.h
  lex.o main.o: tok.h
  
  
  clean:
      rm -f *.o *~ lex.c lex.yy.c bison.c tok.h grammar.tab.c grammar.tab.h grammar.output mini_lang
  </code></pre>
  
  <p>Please, can anyone help me to fix this error?</p>