[Cook] Compile/build problem with cook 2.22 under Cygwin
Susanne Oberhauser
froh at suse.de
Fri Mar 21 06:37:18 EST 2003
On Thursday 20 March 2003 08:46, Larry E. Wagner wrote:
> In file included from cook/lex.c:53:
> cook/hashline.gen.h:35: parse error before numeric constant
the current bison generates both #defines and an enum type for the tokens.
hashline.gen.h and parse.gen.h have overlapping token names. so when the
first of the two files #defines the token name to expand to a number, the
second will contain a number = number line in the enum definition, that's why
the compiler fails.
my workaround was to define hashline_TOKENTYPE and parse_TOKENTYPE (please
check in *.gen.h for spelling) in the CPPFLAGS when I created the cook and
aegis packages for SuSE Linux 8.2 (coming soon).
hth
Susanne
More information about the Cook-users
mailing list