[Uml-devel] Problems compiling with flex 2.5.31

Albert Chin uml-devel at mlists.thewrittenword.com
Thu Apr 24 13:04:06 UTC 2003


Trying to build on Redhat Linux 7.1 with GCC 3.2, KDE 3.1.1, Qt 3.1.2:
...
In file included from tokenizer.l:25:
/opt/TWWfsw/flex25/include/FlexLexer.h:113: redefinition of `class yyFlexLexer'
/opt/TWWfsw/flex25/include/FlexLexer.h:113: previous definition of `class 
   yyFlexLexer'
/opt/TWWfsw/flex25/include/FlexLexer.h:113: confused by earlier errors, bailing out
gmake[3]: *** [tokenizer.o] Error 1
gmake[3]: Leaving directory `/opt/build/umbrello-1.1.1/uml/classparser'

I can fix this by adding:
  #undef yyFlexLexer
after the following in FlexLexer.h:
  #define yyFlexLexerOnce

Is this just flex being silly?

-- 
albert chin (china at thewrittenword.com)




More information about the umbrello-devel mailing list