Can't compile flex/yacc generated code with ANSI C++ Compiler

"Mario Sansone" <Mario.Sansone@siemens.com>
15 Dec 2001 00:41:16 -0500

          From comp.compilers

Related articles
Can't compile flex/yacc generated code with ANSI C++ Compiler Mario.Sansone@siemens.com (Mario Sansone) (2001-12-15)
Re: Can't compile flex/yacc generated code with ANSI C++ Compiler remove.haberg@matematik.su.se (2001-12-20)
Re: Can't compile flex/yacc generated code with ANSI C++ Compiler loewis@informatik.hu-berlin.de (Martin von Loewis) (2001-12-20)
Re: Can't compile flex/yacc generated code with ANSI C++ Compiler foldy@rmki.kfki.hu (Foldy Lajos) (2001-12-20)
Re: Can't compile flex/yacc generated code with ANSI C++ Compiler mgieseki@uos.de (Martin Gieseking) (2001-12-20)
ANSI and ISO C++ remove.haberg@matematik.su.se (2001-12-20)
| List of all articles for this month |

From: "Mario Sansone" <Mario.Sansone@siemens.com>
Newsgroups: comp.compilers
Date: 15 Dec 2001 00:41:16 -0500
Organization: Siemens Inc.
Keywords: lex, C++, question
Posted-Date: 15 Dec 2001 00:41:16 EST

Hello,


Does anybody know, why I can't compile my flex 2.5.4 generated code
with my new SUN Compiler 5.2 ? This compiler is a strictly
ANSI C++ Compiler ! I use the c++ feature in flex, means FlexLexer classes.
I get this error:
Cannot assign std::basic_istream<char, std::char_traits<char>>* to istream*
or
Cannot assign istream* to std::basic_istream<char, std::char_traits<char>>*


what does this mean ? flex 2.5.4 genrates no ANSI C++ code ??
I guess 'yyin' is the problem. But I'm not sure.


Bye,
Mario


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.