[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flex using g++
From: |
W. L. Estes |
Subject: |
Re: flex using g++ |
Date: |
Thu, 12 Sep 2002 16:47:33 -0400 |
User-agent: |
Mutt/1.3.28i |
On Thursday, 12 September 2002,15:36 -0500, Arun Goel wrote:
> I downloaded the flex & now I am using flex 2.5.19 & g++ 3.1.
>
> Now when I tried to compile the file generated using flex I am getting the
> following error.
> __________________________________________________________________
> DataQueryParser.C: In member function `virtual int yyFlexLexer::yylex()':
> DataQueryParser.C:1210: `yywrap' undeclared (first use this function)
> DataQueryParser.C:1210: (Each undeclared identifier is reported only once
> for
> each function it appears in.)
> __________________________________________________________________
You need to provide a yywrap if you're not going to use the standard
flex function. This is discussed in the manual. You need to link
against the flex provided library if you want the standard yywrap function.
--Will