> On 24 Jul 2015, at 11:58, Tom Wang A wrote:
>
> Thanks very much!
You are welcome!
> In my system, YYSIZE_T is always defined as __SIZE_TYPE__ in the output
> file(y.tab.c .*), which are compiled by bison 2.1 and bison 2.3. And
> __SIZE_TYPE__ is actually a 8-byte size type on the server.
[mailto:haber...@telia.com]
Sent: Thursday, July 23, 2015 5:55 AM
To: Tom Wang A
Cc: help-bison@gnu.org
Subject: Re: 'size_t' undeclared (first use in this function)
> On 22 Jul 2015, at 11:17, Tom Wang A wrote:
>
> I encounter a compiling error with bison 2.1. The output file y.tab.c
: In function 'yytnamerr':
> y.tab.c:718: error: 'size_t' undeclared (first use in this function)
There is a typo: it should be YYSIZE_T instead of size_t, at least it is what
Bison 2.3 outputs. And size_t is in . You might preproces
error with bison 2.1? The
error is showed as:
y.tab.c: In function 'yytnamerr':
y.tab.c:718: error: 'size_t' undeclared (first use in this function)
y.tab.c:718: error: (Each undeclared identifier is reported only once
y.tab.c:718: error: for each function it appears in.