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) |
From: | Foldy Lajos <foldy@rmki.kfki.hu> |
Newsgroups: | comp.compilers |
Date: | 20 Dec 2001 00:45:19 -0500 |
Organization: | Budapest University of Technology and Economics |
References: | 01-12-070 |
Keywords: | lex, C++ |
Posted-Date: | 20 Dec 2001 00:45:19 EST |
Hi,
a guess from linux/g++ experience: the generated scanner has a
class istream;
line somewhere inside. Change this to
#include <iostream.h>
regards,
lajos foldy
On 15 Dec 2001, Mario Sansone wrote:
> 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>>*
Return to the
comp.compilers page.
Search the
comp.compilers archives again.