[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Txr-users] Error building 025
From: |
Kaz Kylheku |
Subject: |
Re: [Txr-users] Error building 025 |
Date: |
Wed, 25 Nov 2009 17:35:45 -0800 |
On Wed, Nov 25, 2009 at 4:13 PM, Kevin Quick <address@hidden> wrote:
> gcc -I. -I/Files/Compile/Sources/txr-025 -ansi -D_POSIX_C_SOURCE=2 -Wall -O2
> -g -c -o y.tab.o y.tab.c
> In file included from parser.y:34:
> lib.h:67: error: expected specifier-qualifier-list before ‘wchar_t’
So I was right about parser.y.Your Bison parser generator must be
generating an #include <stdlib.h> in y.tab.c, unlike my Bison.
I already commited a fix which eliminates that dependency.
The Bison documentation doesn't provide any guarantee about what
header is adds. The version I have says this:
In some cases the Bison parser file includes system headers, and in
those cases your code should respect the identifiers reserved by those
headers. On some non-GNU hosts, `<alloca.h>', `<stddef.h>', and
`<stdlib.h>' are included as needed to declare memory allocators and
related types.
You may get includes, might not.
Thanks again.