[Uml-devel] Problems compiling with flex 2.5.31
Jonathan Riddell
jr at jriddell.org
Sat Apr 26 16:59:04 UTC 2003
On Thu, 24 Apr 2003, Albert Chin wrote:
> 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?
Interesting (and disappointing). Flex 2.5.31 is new, can you tell us if
the same error occurs with Flex 2.5.27?
Thanks
Jonathan Riddell
More information about the umbrello-devel
mailing list