[Flex-help] Hello. Problems with flex 2.5.4 and gcc 3.3
flex is a tool for generating scanners
Brought to you by:
wlestes
From: <mik...@ya...> - 2004-03-16 12:23:34
|
I have just started using flex on Mac OSX and all was working fine until I tried to gernerate a C++ scanner. Seems there is a problem with flex and gcc 3.3. I get errors regarding istream. I have seen these problems documented but not yet found a solution. The errors are: In file included from /usr/include/FlexLexer.h:50, from lex.cpp.cc:240: /usr/include/gcc/darwin/3.3/c++/backward/iostream.h:36: error: using declaration `istream' introduced ambiguous type `istream' lex.cpp.cc: In member function `virtual int cppFlexLexer::yylex()': lex.cpp.cc:648: error: cannot convert `std::istream*' to `istream*' in assignment lex.cpp.cc: In member function `void cppFlexLexer::yy_load_buffer_state()': lex.cpp.cc:1181: error: cannot convert `istream*' to `std::istream*' in assignment lex.cpp.cc: In member function `void cppFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)': lex.cpp.cc:1232: error: cannot convert `std::istream*' to `istream*' in assignment Can anyone help?? ===== Regards Chaffinch ---------------------------------------------- ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html |