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: | remove.haberg@matematik.su.se (Hans Aberg) |
Newsgroups: | comp.compilers |
Date: | 20 Dec 2001 00:28:42 -0500 |
Organization: | Mathematics |
References: | 01-12-070 |
Keywords: | lex, C++ |
Posted-Date: | 20 Dec 2001 00:28:42 EST |
<Mario.Sansone@siemens.com> wrote:
>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 ?
Probably that you should use std::istream instead of the global
::istream: I had to tweak the Flex skeleton, adding some "std::", in
order to get it work with C++ namespace's.
> flex 2.5.4 generates no ANSI C++ code ??
Right, C++ namespace's was not in the C++ that Flex was developed around.
Also note that there is a Flex mailing list:
Help-flex mailing list
Help-flex@gnu.org
http://mail.gnu.org/mailman/listinfo/help-flex
Hans Aberg * Anti-spam: remove "remove." from email address.
* Email: Hans Aberg <remove.haberg@member.ams.org>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>
Return to the
comp.compilers page.
Search the
comp.compilers archives again.