[Uml-user] Compile errors with tokenizer.cc
brossollet
chbrossobidon at free.fr
Fri Jan 2 17:19:25 UTC 2004
Hi all,
I'm trying to compile umbrello 1.1.1 on Mac OS X (10.3.2) , but it
fails on the tokenizer compilation.
I use flex 2.5.31 and gcc 3.3.
I tried the suggested modification on tokenizer.l (adding %option
noyywrap to tokenizer.l), but the errors are the same.
Could you help me to compile?
Here are the errors I get:
depfile='.deps/tokenizer.Po' tmpdepfile='.deps/tokenizer.TPo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/sw/lib/flex/include
-I/sw/include -I/sw/include/qt -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -O2 -fno-exceptions -fno-check-new -c -o
tokenizer.o `test -f 'tokenizer.cc' || echo './'`tokenizer.cc
In file included from tokenizer.l:25:
/sw/lib/flex/include/FlexLexer.h:112: error: redefinition of `class
yyFlexLexer
'
/sw/lib/flex/include/FlexLexer.h:112: error: previous definition of
`class
yyFlexLexer'
tokenizer.cc: In member function `virtual int yyFlexLexer::yylex()':
tokenizer.cc:885: error: `yytext' undeclared (first use this function)
tokenizer.cc:885: error: (Each undeclared identifier is reported only
once for
each function it appears in.)
tokenizer.cc:936: error: `yylineno' undeclared (first use this function)
tokenizer.cc: In constructor `yyFlexLexer::yyFlexLexer(std::istream*,
std::ostream*)':
tokenizer.cc:1452: error: `yy_flex_debug' undeclared (first use this
function)
tokenizer.l: In function `bool beginComment(yyFlexLexer*)':
tokenizer.l:168: error: `lineno' undeclared (first use this function)
tokenizer.l: In function `void inComment(yyFlexLexer*)':
tokenizer.l:175: error: `YYText' undeclared (first use this function)
tokenizer.l: In function `bool endComment(yyFlexLexer*)':
tokenizer.l:181: error: `lineno' undeclared (first use this function)
make[3]: *** [tokenizer.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
Charles
More information about the umbrello
mailing list