|
From: SourceForge.net <no...@so...> - 2005-06-27 13:36:41
|
Bugs item #1222125, was opened at 2005-06-17 04:51 Message generated for change (Settings changed) made by tomhoward You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=380760&aid=1222125&group_id=24184 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Server Group: None >Status: Pending >Resolution: Works For Me Priority: 5 Submitted By: Greg Kuhlmann (kuhlmanngj) Assigned to: Tom Howard (tomhoward) Summary: lexer.cpp does not compile Initial Comment: In version 11.0.0 of rcssbase (from CVS), I received the following error while compiling: g++ -DPACKAGE_NAME=\RCSSBase\ -DPACKAGE_TARNAME=\rcssbase\ -DPACKAGE_VERSION=\11.0.0\ "-DPACKAGE_STRING=\RCSSBase 11.0.0\" -DPACKAGE_BUGREPORT=\sse...@us...\ -DPACKAGE=\rcssbase\ -DVERSION=\11.0.0\ -DHAVE_PTHREAD=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MATH_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_POLL_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_NETDB_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_ARPA_INET_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SOCKLEN_T=1 -DHAVE_SIZE_T=1 -DHAVE_NAMESPACES= -DHAVE_SSTREAM= -DHAVE_DLFCN_H=1 -I. -I. -W -Wall -I../.. -g -O2 -MT lexer.lo -MD -MP -MF .deps/lexer.Tpo -c lexer.cpp -fPIC -DPIC -o .libs/lexer.o lexer.cpp: In member function `virtual int RCSS_CONF_Lexer::yylex()': lexer.cpp:658: error: `yy_buffer_stack' undeclared (first use this function) lexer.cpp:658: error: (Each undeclared identifier is reported only once for each function it appears in.) lexer.cpp:658: error: `yy_buffer_stack_top' undeclared (first use this function) lexer.cpp:659: error: `yyensure_buffer_stack' undeclared (first use this function) lexer.cpp: In constructor ` RCSS_CONF_FlexLexer::RCSS_CONF_FlexLexer(std::istream*, std::ostream*)': lexer.cpp:1005: error: `yy_buffer_stack_max' undeclared (first use this function) lexer.cpp: At global scope: lexer.cpp:1530: error: no `void RCSS_CONF_FlexLexer::yypush_buffer_state(yy_buffer_state*)' member function declared in class `RCSS_CONF_FlexLexer' lexer.cpp:1560: error: no `void RCSS_CONF_FlexLexer::yypop_buffer_state()' member function declared in class `RCSS_CONF_FlexLexer' lexer.cpp:1579: error: no `void RCSS_CONF_FlexLexer::yyensure_buffer_stack()' member function declared in class `RCSS_CONF_FlexLexer' /usr/include/c++/3.3/iostream:77: confused by earlier errors, bailing out make[3]: *** [lexer.lo] Error 1 It appears that the error is caused by an out-of-date copy of FlexLexer.h. (I use version 2.5.31 of flex.) I was able to fix the error by copying my local copy of /usr/include/FlexLexer.h to rcssbase/rcssbase I would commit my copy of the header file to CVS, myself, but I'm afraid I might break things for other people. ---------------------------------------------------------------------- >Comment By: Tom Howard (tomhoward) Date: 2005-06-27 23:36 Message: Logged In: YES user_id=189676 I'm using flex 2.5.4. Try updating. Cheers, Tom ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=380760&aid=1222125&group_id=24184 |