help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flex & GCC-3.0


From: W. Wieser
Subject: Flex & GCC-3.0
Date: Fri, 24 Aug 2001 17:40:57 +0200

Hello, 

I cannot get a flex-generated parser compiled with gcc-3.0.1. 

Seems to be a minor problem with istream stuff. 
However, when trying to patch it myself I really drowned in flex's 
#ifdef jungle. Could you please have a look and fix that?

Regards, 
Wolfgang

(Member of the AniTMT-team developing a free GNU film animation 
system.) 

----------------<snip>-----------------

In file included from /usr/include/FlexLexer.h:47,
                 from lexer.cc:241:
/usr/include/g++-v3/backward/iostream.h:36: using directive `istream' 
introduced ambiguous type `istream'
lexer.cc: In member function `virtual int exparse_FlexLexer::yylex()':
lexer.cc:803: cannot convert `std::istream*' to `istream*' in assignment
lexer.cc: In member function `void exparse_FlexLexer::yy_load_buffer_state()':
lexer.cc:1336: cannot convert `istream*' to `std::istream*' in assignment
lexer.cc: In member function `void 
exparse_FlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
lexer.cc:1387: cannot convert `std::istream*' to `istream*' in assignment



reply via email to

[Prev in Thread] Current Thread [Next in Thread]