title: Multiple lexers with flex++
body: <p>I am trying to link various Flex++ Lexers in the same executable. However, I get compile errors as a result because of symbol redefinition. I tried to set different prefixes but it was no use: These are my options:</p>
  
  <p>Lexer1:</p>
  
  <pre><code>%option c++
  %option noyywrap
  %option yyclass="SendmailScanner"
  %option prefix="zz"
  </code></pre>
  
  <p>Lexer2:</p>
  
  <pre><code>%option c++
  %option noyywrap
  %option yyclass="SSHDFailureScanner"
  %option prefix="xx"
  </code></pre>
  
  <p>According to the manual, I should only unset the variable yyFlexLexer and change it into zzFlexLexer (in the source file that uses that lexer) or xxFlexerLexer. Unfortunately, I got the following errors:</p>
  
  <pre><code>/usr/include/FlexLexer.h:103: error: redefinition of ‘class zzFlexLexer’
  /usr/include/FlexLexer.h:103: error: previous definition of ‘class zzFlexLexer’
  </code></pre>
  
  <p>This error also appears even when I have only one Lexer... I do not know what to do.</p>
  
  <p>Thank you in advance,</p>