help-flex
[Top][All Lists]
Advanced

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

Re: flex


From: Gianni Mariani
Subject: Re: flex
Date: Wed, 12 Feb 2003 07:06:36 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910


perhaps "exit" is being defined as a macro ... #define exit 25... you wouldn't have a token named "exit" would you ?

A suggestion is to pass the .cc file through the pre-processor and see what the code looks like.

G

Bhola Ram Meena wrote:

   I am facing a problem with flex.
 Flex is generating this code.
void yyFlexLexer::LexerError( yyconst char msg[] )
       {
       cerr << msg << '\n';
       exit( YY_EXIT_FAILURE );
       }
At compile time  it is giving error like
lex.yy.cc: In method `void yyFlexLexer::LexerError (const char *)':
lex.yy.cc:1545: `25' cannot be used as a function.
       I have tried a lot to fix it but i am unable to fix it.

        I would be very thankful if someone could point out the error.

With sincere regards,

Bhola Ram Meena


_______________________________________________
Help-flex mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-flex







reply via email to

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