0

i created a scanner code using flex++
but when i compile that code it give me lots of error like:

In member function `void yyFlexLexer::yy_load_buffer_state()':
In member function `void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
In member function `virtual int yyFlexLexer::yylex()':
and others

please help me out

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Rashakil Fol
0

These messages are useless, what are the "error" messages? the "in member.." just tells you where the erroneous code was called from. You should have later on some messages saying "error" and giving the file and line, e.g. "my_header.h(42)" for an error in my_header.h at line 42.

Generally, you should literally copy-paste the error messages and Google them, and you will find solutions for your problems.

0

The errors were caused by the C++ code that the original poster wrote, which is intermingled inside the output of flex++, so C++ would still be the appropriate forum.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.