help-flex
[Top][All Lists]
Advanced

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

Compiling code generated by flex 2.5.4 with g++ 3.0.3 on linux


From: Matthias . Eisenmann
Subject: Compiling code generated by flex 2.5.4 with g++ 3.0.3 on linux
Date: Tue, 13 Aug 2002 16:40:53 +0200

Hi,

we are using flex 2.5.4 and the gnu c++ compiler 3.0.3. When compiling the
result of flex "LSto_Scanner.cpp", we get the error message:

        LSto_Scanner.cpp: In member function `void  yyFlexLexer::yylex()':
        LSto_Scanner.cpp:689: cannot convert `std::istream*' to `istream*'
in  assignment
        ...

the line to be compiled is

        yy_current_buffer->yy_input_file = yyin;

Compiling with MSC 6.0 causes no problems. The problem seems to be a
foreward declaration

        class istream;

G++ excepts a std::istream later instead.

Does anybody have some advice for us? Thanks

        Matthias Eisenmann




reply via email to

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