title: Flex and Yacc - Cannot find - lfl?
body: <p>Hi I'm learing Lex and yacc. I created the following lex program.</p>
  
  <pre><code>%{
  #include &lt;stdio.h&gt;
  %}
  
  %%
  [0123456789]+           printf("NUMBER\n");
  [a-zA-Z][a-zA-Z0-9]*    printf("WORD\n");
  %%
  </code></pre>
  
  <p>I'm trying to run it using the following commands:</p>
  
  <ol>
  <li>lex example1.l</li>
  <li>cc lex.yy.c -o example1 -ll </li>
  </ol>
  
  <p>also tried cc lex.yy.c -o example1 -lfl</p>
  
  <p>When I enter the second command form above, I get error: </p>
  
  <pre><code>D:\workdir\flexyacc\Test3&gt;gcc lex.yy.c -o Test -lfl
  C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lfl
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>I tried googling this error but no luck so far. Since I'm new in Lex programming, I'm not understanding how to fix this. Any help will be greatly appreciated. Thank so much in advance.</p>