title: Fatal error: FlexLexer.h: No such file or directory
body: <p>I created a simple Flex file to read and return tokens from a file. I generated the scanner file using the command <strong><em>flex -c++ scanner.l</em></strong>. When trying to compile the generated lex.yy.cc file I am getting the error as:</p>
  
  <pre><code>Fatal error: FlexLexer.h: No such file or directory
  </code></pre>
  
  <p>The include folder of flex contains the FlexLexer.h file. I also tried by copying the file to the same folder where lex.yy.cc resides. Still the error exists. </p>
  
  <p>I am using Windows7.</p>
  
  <p>How can I solve this problem. Thank You</p>