Problem with flex?
Ian Lance Taylor
iant@google.com
Tue Apr 3 16:53:00 GMT 2012
Christer Solskogen <christer.solskogen@gmail.com> writes:
> On Tue, Apr 3, 2012 at 3:53 PM, Ian Lance Taylor <iant@google.com> wrote:
>> What version of flex do you have installed? If you look at the file
>> gcc/gengtype-lex.c in your build directory, do you see typedefs for
>> flex_int32_t?
>>
>
> flex --version
> flex 2.5.35
>
> grep int32 gengtype-lex.c
> flex_int32_t yy_verify;
> flex_int32_t yy_nxt;
> static yyconst flex_int32_t yy_ec[256] =
> static yyconst flex_int32_t yy_meta[63] =
How odd. My flex (on Ubuntu) also reports itself as 2.5.35. But:
> grep int32 gengtype-lex.c
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
typedef int flex_int32_t;
typedef unsigned int flex_uint32_t;
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
static yyconst flex_int32_t yy_ec[256] =
static yyconst flex_int32_t yy_meta[63] =
Why are you missing the typedefs? I have no suggestion. It seems like
it must be a bug in your version of flex.
Ian
More information about the Gcc-help
mailing list