Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3594801
By: nobody

Hello,

the C++ mode of flex 2.5.4a is broken. It generates non-ISO conformant C++ code
which makes any recent gcc barf.

The problem seems to be not GnuWin32 specific, but that's I ran into it (full
force), so why not save you folks some trouble. Patching is simple though:

(1) in flex.skl, replace the line "class istream;"
with these two lines: 

#include <iosfwd>
using namespace std;

(2) in FlexLexer.h, replace all occurences of "istream" with "std::istream"
and ditto "ostream" with "std::ostream"

This link has some explanation on what goes wrong:
http://tinyurl.com/m7oet. However the poster only presented part (1) of the
patch. I needed (2)
too to get it to work.

If somebody tells me how to submit a formal patch, I'll do it (one day).



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to